Anti-missile intercept

Given the missile parabola and the anti-missile launch point and speed, decide the firing time and angle that intercepts at time tK, or report failure.

Medium4GeometryMathImplementationNo attempts yetTime limit2sMemory limit512 MB

Problem

You have to write software that shoots down a missile fired by the enemy. The situation is modeled as a simple two dimensional plane. The enemy launches its missile from (xm,0)(x_m, 0) on the xx axis, and you launch your anti-missile from (xa,0)(x_a, 0). All lengths are in feet.

At the moment of launch the enemy missile has velocity vxv_x in the xx direction and vyv_y in the yy direction, in feet per second. The missile is launched at time 00, so at any later time tt it is at

(xm+vxt,  vyt16t2)(x_m + v_x t,\; v_y t - 16 t^2)

The image below draws one possible pair of trajectories. The missile follows a parabola and the anti-missile follows a straight line. In this picture vxv_x is negative. vyv_y is always positive.

The parabolic trajectory of the missile and the straight trajectory of the anti-missile

Your commanders want the missile destroyed at a specific time tKt_K. Work out when to fire your anti-missile and what launch angle α\alpha to use, so that it meets the missile at exactly that time. You are also given vav_a, the speed of your anti-missile along its straight trajectory.

Sometimes the missile cannot be destroyed at time tKt_K. It cannot be destroyed if either of the following holds.

  • You would have to fire the anti-missile before time 00, that is, the launch time tLt_L is negative.
  • The height of the missile at time tKt_K is 00 or less, so it has already landed and blown up.

In that case the software sounds an alarm so that everyone can start running.

Input

One line holds six integers xmx_m, vxv_x, vyv_y, xax_a, vav_a, tKt_K, separated by spaces, where 0<vy,va,tK100000 < v_y, v_a, t_K \le 10000, 10000xm,vx,xa10000-10000 \le x_m, v_x, x_a \le 10000, and xmxax_m \ne x_a.

Output

If the missile cannot be destroyed at time tKt_K, print start running.

Otherwise print the launch time tLt_L and the launch angle α\alpha on one line, separated by a single space. Round both values to exactly eight digits after the decimal point and print all eight digits.

α\alpha is in degrees, measured counterclockwise from the positive xx direction, and always satisfies 0<α<1800 < \alpha < 180.