시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB222100.000%

문제

You are going on a trip on the Cartesian plane. Starting at $(0, 0)$ and going to $(X, 0)$ with constant speed, you will view attractions. Attractions are modeled as rectangles on the plane, with the base at $(x_i, y_i)$, width $w_i$ and height $h_i$. Unfortunately, attractions can overlap.

The distance from you to an attraction is the Euclidean distance from you to its closest point. An attraction is the Star Attraction if the distance from you to that attraction is the minimum among all attractions. If several attractions are at minimum distance, the one with the lower index is the Star Attraction (it had better ratings).

You want to know how much time each attraction will be the Star Attraction, in percentages.

입력

The first line will contain two integers, $N$ and $X$ ($1 \le N \le 200\,000$, $1 \le X \le 1\,000\,000$).

Each of the next $N$ lines contain four integers, $x_i$, $y_i$, $w_i$, and $h_i$ ($1 \le x_i, y_i \le 1\,000\,000$, $0 \le w_i, h_i \le 1\,000\,000$).

출력

Output $N$ lines. On the $i$-th line, output the percentage of time that the $i$-th attraction is the Star Attraction. Your answer will be considered correct if its absolute or relative error is at most $10^{-8}$.

예제 입력 1

2 10
1 2 5 1
2 1 1 5

예제 출력 1

52.679491924
47.320508076

예제 입력 2

4 7
1 3 0 0
3 4 0 0
5 5 0 0
3 4 0 0

예제 출력 2

53.571428571
35.714285714
10.714285714
0.000000000