Two rectangles are given by the integer coordinates of a pair of diagonal vertices in a rectangular coordinate system, and their sides are guaranteed to be parallel to the axes. Find the area of the common part of rectangles.
Four pairs of integers (each is less than 10^6
by absolute value).
Print the area of the common part of rectangles.