In a big, square room there are two point light sources: one is red and the other is green. There are also n circular pillars.
Light travels in straight lines and is absorbed by walls and pillars. The pillars therefore cast shadows: they do not let light through. There are places in the room where no light reaches (black), where only one of the two light sources reaches (red or green), and places where both lights reach (yellow). Compute the total area of each of the four colors in the room. Do not include the area of the pillars.
For each test case, output:
Case #X: black area red area green area yellow areawhere X is the test case number, starting from 1, and each area is a real number.
Any answer with absolute or relative error of at most 10-5 will be accepted.
All input numbers are integers.
1 ≤ T ≤ 15
0 ≤ x, y ≤ 100
1 ≤ r ≤ 49
0 ≤ n ≤ 1
0 ≤ n ≤ 50