Rotate Sum 2

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

문제

Grammy loves geometry. Today, she takes out her precious convex polygon and plays with it on a piece of paper. The polygon has nn vertices numbered from 11 to nn in counterclockwise order. For vertex ii, the next vertex in this order is i+=imodn+1i^{+} = i \bmod n + 1, and the previous one is i=(i+n2)modn+1i^{-} = (i + n - 2) \bmod n + 1.

Firstly, Grammy draws a horizontal line on the paper. Secondly, she chooses two vertices ii and jj of the polygon independently and equiprobably. Thirdly, she places the edge between vertex ii and vertex ii^{-} on the line, landing all other vertices above the line, and draws a vertical line through vertex jj. Next, she rotates the polygon clockwise, taking vertex ii as the rotation center, until vertex i+i^{+} hits the line. When vertex i+i^{+} hits the line, she changes the rotation center to vertex i+i^{+} and rotates again until vertex i++i^{++} (the next after i+i^{+}) hits the line. She repeats this operation until vertex ii hits the line again. Finally, she draws another vertical line through the vertex jj and calculates the area between the trajectory of vertex jj and the three lines.

Since you do not know which points Grammy will choose, you want to calculate the expected value of the area.

입력

The first line contains a single integer nn (3n100,0003 \leq n \leq 100\\,000), denoting the number of vertices in the polygon.

Each of the following nn lines contains two integers x_ix\_i and y_iy\_i (109x_i,y_i109-10^9 \leq x\_i, y\_i \leq 10^9), denoting the coordinates of a vertex of the polygon. The vertices are given in counterclockwise order. It is guaranteed that the polygon is strictly convex.

출력

Output a single real number denoting the expected area. The answer is considered correct if its absolute of relative error does not exceed 10410^{-4}.

힌트

For the first example, if the ii-th vertex is marked as A_0A\_0, and the jj-th vertex is marked as B_0B\_0, then the polygon will be A_3B_3C_2A\_3 B\_3 C\_2 after 33 rotations, and the trajectory of vertex jj is arc hh and arc pp. The area of the green part is the answer in this case.}