Tomosynthesis

No attempts yetTime limit1sMemory limit256 MB

Problem

Tomosynthesis is a medical imaging method that computes a 3D dataset from X-ray images taken in several directions within a limited range of angles. A wider range of angles usually gives a better reconstruction, but it is harder to acquire. Arvid is building a reconstruction algorithm for the 3D image, and so far it fails whenever structures overlap in any of the input images. The first sample he will reconstruct is a test object made of parallel cylinders of equal length and varying diameters, rotated around the axis of the cylinders.

Figure D.1: On the left, a cross section of the test object from the first example input. The upper projection is not acceptable because the two larger cylinders overlap. In the lower projection no cylinders overlap, so this direction and a range of angles around it are fine. On the right, the same test object seen from the side.

Setting aside the fact that the algorithm will not work in practice, Arvid asks you for help. What is the largest range of angles in which the test object can be imaged without any cylinders overlapping in any of the images? An image is a plane projection of the structure perpendicular to the axes of the cylinders, and two cylinders overlap in an image when their projected intervals meet.

Input

The first line contains one integer NN, the number of cylinders that make up the test object (2N1002 \le N \le 100). Each of the next NN lines contains three real numbers xx, yy and rr: the x coordinate of the center of a cylinder, the y coordinate of that center, and the radius of that cylinder. The coordinates satisfy 1000x,y1000-1000 \le x, y \le 1000 and the radius satisfies 0<r10000 < r \le 1000. No two cylinders touch or overlap.

Output

Print one line with the size in radians of the largest continuous range of projection directions over which no cylinders overlap. If no such direction exists, print 0. Print the value rounded to exactly nine digits after the decimal point, so an answer of 0 is printed as 0.000000000.