Attractions On Plane

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

문제

You are going on a trip on the Cartesian plane. Starting at (0,0)(0, 0) and going to (X,0)(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)(x\_i, y\_i), width w_iw\_i and height h_ih\_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, NN and XX (1N200,0001 \le N \le 200\\,000, 1X1,000,0001 \le X \le 1\\,000\\,000).

Each of the next NN lines contain four integers, x_ix\_i, y_iy\_i, w_iw\_i, and h_ih\_i (1x_i,y_i1,000,0001 \le x\_i, y\_i \le 1\\,000\\,000, 0w_i,h_i1,000,0000 \le w\_i, h\_i \le 1\\,000\\,000).

출력

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