Moon

아직 제출이 없습니다시간 제한2초메모리 제한256 MB

문제

Let SS be a sphere with radius 11 and center (0,0,0)(0, 0, 0). Let a_0,a_1,,a_na\_0,a\_1,\ldots,a\_n be n+1n+1 points on the surface of SS. The positions of a_1,,a_na\_1,\ldots,a\_n are fixed while the position of a_0a\_0 is a uniform random point on the surface of SS. Let ff be 11 if there exists a hemisphere of SS that contains a_0,,a_na\_0,\ldots,a\_n and 00 otherwise. Calculate the expected value of ff.

입력

The first line contains an integer nn denoting the number of points (0n1000000\le n\le 100000).

The ii-th line of the next nn lines contains three integers x,y,zx, y, z denoting the point a_i=(xx2+y2+z2,yx2+y2+z2,zx2+y2+z2)a\_i=\left(\frac{x}{\sqrt{x^2+y^2+z^2}}, \frac{y}{\sqrt{x^2+y^2+z^2}}, \frac{z}{\sqrt{x^2+y^2+z^2}}\right) (1000000x,y,z1000000,x2+y2+z20-1000000\le x, y, z\le 1000000, x^2+y^2+z^2\neq 0).

It is guaranteed that a_1,,a_na\_1,\ldots,a\_n are distinct.

출력

Output the answer.

The answer will be considered correct if its absolute or relative error doesn't exceed 10610 ^{-6}.