Fishermen off the coast catch a very lazy kind of fish that swims along a straight line at a constant speed, almost never changing its direction or velocity. Each fisherman uses a circular net whose radius can be adjusted freely, and has already fixed the center of the net at a single point.
There are N fish. For each fish you are given its position at time 0 and its position one second later; the fish keeps moving along the straight line through those two points at the same constant speed. The fishermen may lower the net at any single moment t≥0, and a fish is caught if at that moment it lies inside or on the boundary of the net.
They want to catch at least K fish in one dip, but they do not want to catch more than necessary so that enough fish remain in the ocean, so they want the net as small as possible. Find the smallest radius R such that there exists a moment t≥0 at which at least K fish lie within distance R of the center.
The first line contains two integers Cx and Cy (1≤Cx,Cy≤104), the coordinates of the center of the net.
The second line contains two integers N and K (5≤N≤1000, 1≤K≤N).
Each of the next N lines contains four integers Ax, Ay, Bx, By (0≤Ax,Ay,Bx,By≤104): (Ax,Ay) is the position of a fish at time 0, and (Bx,By) is its position at time 1. Each fish moves along a straight line at constant speed, so at time t it is located at (Ax+t(Bx−Ax), Ay+t(By−Ay)).
Print a single real number R, the required radius of the net, rounded to exactly 5 digits after the decimal point, followed by a newline.