Jacob flies a radio-controlled aircraft. Today is windy, so he has to plan the flight in advance. He has a forecast that gives the wind for every second of the flight.
The airspeed of the plane during one second can be any vector of length at most vmax. If the airspeed during a second is (vx,vy) and the wind during that same second is (wx,wy), the plane moves by (vx+wx,vy+wy) in that second.
Jacob has fuel for exactly k seconds. He wants to know whether the plane can get from the start S to the finish F within that time, and if it can, where the plane is at the end of each second.
The first line contains four integers Sx, Sy, Fx, Fy, the coordinates of the start and the finish (−10000≤Sx,Sy,Fx,Fy≤10000).
The second line contains three integers n, k, vmax: the number of wind records, the length of the flight in seconds, and the maximum airspeed (1≤n,k,vmax≤10000).
Each of the next n lines contains three integers ti, wxi, wyi. From time ti on, the wind blows by the vector (wxi,wyi) each second (0=t1<t2<⋯<tn<k, and wxi2+wyi2≤vmax). The wind during the second that runs from time j to time j+1 is the vector of the last record whose time ti is at most j.
Write wj for the wind during the j-th second, W=w1+w2+⋯+wk for the total drift, and D=F−S−W for the displacement the plane has to cover on its own.
If the length of D is greater than k⋅vmax, print No on a single line.
Otherwise print Yes on the first line, then the k lines of the flight plan. Print the plan that holds the airspeed constant at D/k for the whole flight, so the position at the end of the i-th second is
Pi=S+∑j=1iwj+kiD
The i-th of those k lines contains the two coordinates of Pi, separated by a space, each written with exactly 6 digits after the decimal point. A coordinate that lands exactly halfway between two multiples of 10−6 is rounded up.
This plan uses airspeed of length ∣D∣/k in every second, so it respects the speed limit whenever any plan does.