metin2

Time limit: 0.8s Memory limit: 256MB Input: Output:

Coami, stressed about college, decided to play some Metin2.

The objective of Metin2 is to break Metin Stones. A Metin Stone is a convex polygon with 44 vertices. Because Coami is a competitive player, he wants to MinMax his farming strategy, so he wants to know the area of the range in which he can hit all the stones at the same time.

Strictly speaking, you are given NN convex quadrilaterals, and you need to compute the total area of the shape inside ALL of the given quadrilaterals.

Input

The first line of the input contains an integer NN (1N1051 ≤ N ≤ 10^5), the number of Metin Stones.

Each Metin Stone is described on 44 lines, each line containing a pair of integers (x,y)(x, y), (4105x,y4105)(−4 \cdot 10^5 ≤ x, y ≤ 4 \cdot 10^5), where (x,y)(x, y) is a vertex of the Metin Stone. The points are given in trigonometrical order.

For tests worth 1010 points, the following condition holds 1N1021 ≤ N ≤ 10^2.

For tests worth other 3030 points, the following condition holds 1N1031 ≤ N ≤ 10^3.

Output

Output on one line the requested number with a precision of 10610^{-6}.

Examples

stdin

2
-5 0
-5 -6
5 -4
5 1
-4 1
-5 -8
5 -6
2 0

stdout

40.072108018

stdin

5
-1 5
-3 -2
4 2
3 6
-5 8
-4 -2
2 0
2 7
-2 8
-1 0
2 0
3 4
-5 5
-4 1
4 1
1 8
-3 4
-1 -1
4 0
3 7

stdout

13.719694617

Log in or sign up to be able to send submissions!