After nearly two years of captivity inside of [REDACTED]'s torture chamber, has finally been set free! Promising to be a better person without rebellious thoughts, he promptly returns to the remains of his bunker from years past and discovers a piece of treasure. One that he wouldn't let succumb to the horrors of what happened last time.
This valuable relic was none other than his trusty paintbrush and palette, which while
recognized was covered in ash and dust, was remarked by as a brand-new piece of technology.and and with a length and height of , , , respectively, he wants to know how much paint he will need for his creation. Length is defined as the horizontal distance a rectangle spans, and height is defined as the vertical distance it spans.
wants to create a painting with his new favourite shape: the rectangle! Consisting of two rectangles parallel to the axes on a canvas, centered atCan you help
find the total area of the two rectangles?Input Specification
The first line of input contains four space-separated integers, , , and .
The second line of input contains four space-separated integers, , , and .
Output Specification
Output the total area of the two rectangles. Output will be accepted if it is accurate relative to 9 digits.
Constraints
All input variables will be positive integers such that .
Sample Input
0 0 100 100
50 50 100 100
Sample Output
17500.0
Comments