It is Sunday, November 1, 2390, and Eddy has just been elected to the World Council. The work is interesting and carries real responsibility, and Eddy wants to throw himself into it, but there is a problem. Eddy loves sport. He likes jogging most of all, and since he was a little boy he has jogged at least thirty minutes every single day. As a councillor he will have even less free time than he had as a teacher. Where will the time for jogging come from?
Eddy decided to jog on his way to work. The Council building is far from his house, so he wants to combine jogging with public transport. Moving pathways are the only public transport in the Capital. One line of pathways is a pair of straight pathways running in opposite directions at the same speed v1>0. The pathways are very long and narrow, so this problem treats each pair as one infinite straight line in the plane. Every line also comes with two numbers Ti+ and Ti−, the time needed to board that line and the time needed to leave it. Crossing a pathway on foot costs no extra time. Changing from line i to line j at the point where the two meet takes exactly Ti−+Tj+ seconds. The two lines do not really intersect there, because special bridges are built at those points.
Eddy wants to jog on the pathways as well, so on a pathway he moves with ground speed v1+v2, where v2>0 is his speed when jogging on still ground.
Find the smallest travel time from Eddy's house to the Council building. A route is made of several straight segments, and some of them can lie on one of the existing pathways.
The first line contains one integer N, the number of pairs of moving pathways in the city (0≤N≤50).
The second line contains six real numbers x1, y1, x2, y2, v1, v2 separated by spaces: the coordinates of Eddy's house, the coordinates of the Council building, the speed of the pathways, and Eddy's own speed.
Each of the next N lines describes one line of pathways with six real numbers xi1, yi1, xi2, yi2, Ti+, Ti−. The points (xi1,yi1) and (xi2,yi2) are two different points on that line, and Ti+ and Ti− are the boarding and the leaving time (0≤Ti+,Ti−≤10).
No coordinate exceeds 10000 in absolute value, and v1 and v2 are real numbers between 1 and 100. All pathways lie on different straight lines. Neither (x1,y1) nor (x2,y2) lies on any pathway.
Print the smallest travel time from the house to the Council building, rounded to six digits after the decimal point, with all six digits written out.