For the given rectangles, your task is to find the smallest area that can be covered by these rectangles, allowing them to overlap. Each rectangle is defined by the lengths of its two sides.
The first line contains the integer , representing the number of rectangles. This is followed by lines, each containing two integers that specify the lengths of the sides of a rectangle (1 \le N \le 2 \cdot 10^5, and the lengths of the sides do not exceed 10^9).
Output a single line containing the smallest possible area that can be covered by the rectangles.
Example 1