There are N 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 x axis) and its height (its length along the y 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).