~/algor $ cat problems/minmax-2-eng-kichik-yuzali-tortburchak
Rectangle with the smallest area
Easy
1000 ms
256 MB
21%
A positive integer $N$ and the sides $a$ and $b$ of each of $N$ rectangles are given. Find the area of the rectangle with the smallest area:
$$S = a * b$$
Input
The first line contains the number of rectangles $N$. Each of the next $N$ lines contains two integers: $a_{i}$ and $b_{i}$.
Output
One integer — the smallest area of a rectangle.
Note
$1 \le N \le 1000$
$1 \le a_{i}, b_{i} \le 10^{4}$
Examples
Input #1
3 3 4 2 7 5 3
Output #1
12
Input #2
3 10 10 5 20 4 26
Output #2
100