Sandwiches
Pasha likes to cook sandwiches. His trademark sandwich "Coupe" he prepares the four main ingredients: the top piece of bread, a slice of cheese, slice of ham and bottom piece of bread. All ingredients are rectangular form. Once he decided to quickly make this sandwich. To do this, he threw the ingredients into the air in the hope that they will fall and will develop themselves in order. However, the ingredients are dropped on the table, disorderly manner.
Pasha is also a big fan of the game "Tic-tac-toe", so the cloth on his desk looks like a checkered plane. Fast typing on my desk grid, Pasha calculated in which cells which ingredient has fallen, and it turned out that every ingredient was a rectangle with corners at points with integer coordinates and sides parallel to coordinate axes.
Now Pasha began to wonder what the total area on the table to take his sandwich. Your task in this to write a program that computes this area.
Input
Contains four lines, each containing four integers - the coordinates of the lower left and upper right corner of the next ingredient.
Coordinate grid is introduced so that the first coordinate increases from left to right, and the second from the bottom up.
All the numbers in the input file for the module does not exceed 1000.
Output
Print a single integer - the answer to the problem.