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≤N≤200,000, 1≤X≤1,000,000).
Each of the next N lines contain four integers, x_i, y_i, w_i, and h_i (1≤x_i,y_i≤1,000,000, 0≤w_i,h_i≤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.