시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 512 MB 0 0 0 0.000%

## 문제

You are operating a taxi company in the Land of Bytes, which is an interesting city. First, all roads in the city either along the north-south direction or along the east-west direction. Second, it’s an extremely large city such that the sizes of blocks between different roads are negligible. Therefore, each position in this city can be represented by coordinates (x, y) of real values.

The taxi drivers always takes the shortest path between the pick-up and drop-off points, following streets. Your company only operates the taxis within the central business district (CBD), which is a convex polygon of n points.

Assuming the pick-up and drop-off points from the passengers are chosen, uniformly at random, from inside the CBD, what is the expected distance that a taxi will travel? Assume the taxi travel distance between any points (x, y) and (x1, y1) is always |x − x1| + |y − y1|.

## 입력

The first line contains an integer n (3 ≤ n ≤ 100 000).

Following this will be n lines, each with two integer values values (x, y) representing the points on the border of CBD, where |x|, |y| < 109. The points are presented in a clockwise order and there will be no three points on the same line.

## 출력

The output is a single line containing one number, the expected distance expressed with a relative or absolute error less than 10−6.

## 예제 입력 1

4
0 0
0 1
1 1
1 0


## 예제 출력 1

0.666666666666667


## 예제 입력 2

3
0 0
1 1
2 0


## 예제 출력 2

0.733333333333333


## 예제 입력 3

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


## 예제 출력 3

2.08448753462604