Combining rectangles is much easier when their sides are parallel to the coordinate axes. Find the area covered by the union of a given set of such rectangles.

The first line contains the number of rectangles (2 \leq n \leq 3). Each of the next lines contains the coordinates of two opposite corners of a rectangle in the format: x_1\ y_1\ x_2\ y_2. The coordinates are separated by spaces and are integers in the range [-10^9, 10^9].
Degenerate rectangles are allowed.
Print the area of the union of the rectangles, rounded to the nearest integer.
Example 1
Example 2
Example 3
Example 4