LOGO
Company VENICE ordered you a new logo for its products - the modern PC, which the company produces the best parts, and it is selected on world markets. The company wants to have a background logo looks like two squares that overlap. Sami squares must be black, and their intersection - white. One of the options for the background logo, you can see in the picture. You need to find the area of the black parts of the logo.
Note: The squares in the logo may intersect in an arbitrary manner, in particular, they can be nested within each other or touch each other.
Input
The input data consist of two lines. Each line contains four real numbers: x_1, y_1, x_2, y_2 – coordinates of two opposite vertices of a square. In this –1000.0 < x_1, y_1, x_2, y_2 < 1000.0.
Output
Single number - the area of shapes that you want to paint, with an absolute or relative accuracy of 10^{–5}.