Recently, the moon has passed closer to the Earth than it has in decades. Hazel, set on seizing the opportunity, stayed up all night to watch the moon through her circular window. Unfortunately, the moon and Hazel's window did not perfectly align, and Hazel could only see part of the moon. Can you figure out how much of the moon she saw?
Input
Each test case begins with three integers , representing a circle centered at with radius , the part of the sky that she could see through her window.
The next line contains three integers , the position of the moon in the sky.
Output
For each test case, output the area of the moon that was visible. Your answer will be counted as correct if it is within a relative or absolute error of from the judge's answer.
Sample Input
1 1 2
1 1 1
Sample Output
3.1415926536
Sample Input
1 2 1
1 1 1
Sample Output
1.2283696986
Comments