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

## 문제

Donald owns a nice small house in Manhattan. Due to recent elections it is important to protect yourself from the potential public unrest, so Donald has decided to build a fence around his house.

Donald's house can be represented as a polygon on the plane, with all the coordinates being integers. Moreover, all of his house corners are exactly $90\deg$, and each wall is parallel to either east-west or north-south axis. Donald wants to build a fence so that the house is completely inside of it and that the fence is not too close to the house. More precisely, Donald wants to build a fence in such way that Manhattan distance between any point of the fence and any point of the house is at least $l$.

Recall that Manhattan distance between points $(x_1, y_1)$ and $(x_2, y_2)$ is $|x_1 - x_2| + |y_1 - y_2|$.

Donald wants to minimize building costs, so he asks you to find the smallest possible length of the fence.

## 입력

The first line contains integers $n$ and $l$ ($4 \le n \le 100\,000$, $0 \le l \le 10^8$).

Each of the next $n$ lines contains integers $x_i$, $y_i$ ($|x_i|, |y_i| \le 10^8$), describing the border of the house in clockwise or counterclockwise order.

It's guaranteed that the house is non-degenerate, doesn't contain any self-intersections (no two segments intersect except the neighboring segments having a common end), no two points coincide, all the house walls are either vertical or horizontal.

## 출력

Print a single real value, the smallest possible length of the fence. Your answer will be considered correct if it's absolute or relative error will be at most $10^{-6}$.

## 예제 입력 1

4 3
-3 -3
-3 3
3 3
3 -3


## 예제 출력 1

40.9705627485


## 예제 입력 2

9 0
1 1
3 1
5 1
5 2
3 2
3 3
2 3
2 2
1 2


## 예제 출력 2

10.6502815399


## 힌트

Example 1, the house is shown inside in orange, and the optimal fence is shown outside in blue.

Example 2, the house is shown inside in orange, and the optimal fence is shown outside in blue.