Union
Time limit1sMemory limit256 MB
Given N origin-centered axis-aligned rectangles, each by its width and height, compute the area of their union.
Problem
There are rectangles in the Cartesian plane. Every rectangle is centered at the origin, and its four sides are parallel to the coordinate axes. Each rectangle is therefore determined by its width (its length along the axis) and its height (its length along the axis). The figure below shows the first example.

Michuhol, a student in the design department, colored each rectangle and now wants to know the area of the colored part of the paper. In other words, find the area of the region that belongs to at least one rectangle (the union of all rectangles).
Input
The first line contains the number of rectangles ().
Each of the next lines contains the width and the height of one rectangle. and are even integers ().
Output
Print the area of the colored region, that is, the area of the union of all rectangles, on a single line.