Recently, Zain has been entranced by circles and their applications. He starts taking rectangular pumpkins and cutting out perfect cylinders. However, Zain completely forgot that he has Halloween class and will need to use that remaining pumpkin!
Given that you are a programming genius, Zain asks you for help.
Zain tells you that he had a rectangular pumpkin with an integer length of , integer height of , and integer width of then removed a cylinder of height (the same as the pumpkin) and integer diameter from the pumpkin.
Calculate the amount of pumpkin Zain still has left before his Halloween class!
Input Specification
The first line will contain integers: , , and , the length, height, and width of the pumpkin, respectively.
The second line will contain an integer, , the diameter of the cylinder removed from the pumpkin.
Note: The checker will accept an answer up to an absolute error of .
Output Specification
Output the amount of pumpkin remaining.
Sample Input
1 1 1
1
Sample Output
0.21
Comments