Bobo has drawn n circular sectors on the plane. He would like to know the area of the union of all the circular sectors.
The input contains zero or more test cases, and is terminated by end-of-file. For each test case:
The first line contains an integer n, the number of circular sectors (1≤n≤500).
Each of the next n lines contains five numbers x_i, y_i, r_i, s_i and θ_i (−100≤x_i,y_i≤100, 1≤r_i≤100, 0≤s_i≤6, 0.1≤θ_i≤6). Here, (x_i,y_i) is the coordinate of the circle center, r_i is the radius of the circle, s_i is the starting angle in radians (counter-clockwise from the positive direction of the x axis) and θ_i is the central angle in radians (this means that the sector arc goes from angle s_i to angle s_i+θ_i where the angle is measured counter-clockwise from the positive direction of the x axis). Also, x_i, y_i and r_i are integers, and s_i and θ_i are real numbers with exactly 3 digits after the decimal point.
It is guaranteed that the sum of n does not exceed 500.
For each test case, output a real number denoting the answer. Your answer will be considered correct if its relative or absolute error doesn't exceed 10−6.
The image below shows the third test case.
