#C9100. Maximum Rectangle Area

    ID: 53157 Type: Default 1000ms 256MiB

Maximum Rectangle Area

Maximum Rectangle Area

You are given a list of rectangle dimensions. Each rectangle is defined by two positive integers representing its width and height. Your task is to find the rectangle with the maximum area. The area of a rectangle is calculated using the formula: \( Area = width \times height \).

If no rectangle is provided, i.e. when the number of rectangles is zero, the maximum area is considered to be 0.

This problem requires you to read input from standard input (stdin) and output the result to standard output (stdout).

inputFormat

The input is given via standard input (stdin) in the following format:

n
w1 h1
w2 h2
... 
wn hn

Here, \( n \) is an integer representing the number of rectangles. Each of the next \( n \) lines contains two space-separated integers \( w_i \) and \( h_i \) denoting the width and height of the \( i^{th} \) rectangle respectively.

outputFormat

Print a single integer representing the maximum area among the given rectangles. If there are no rectangles (i.e. \( n = 0 \)), print 0.

## sample
0
0