Catch the train#6363

Catch the train

1 Sekunde
64 Megabyte
Mittel

After a long journey, Kotyhoroshko and his friends returned to Ukraine and took some time to rest. One morning, Kotyhoroshko's phone rang, and he heard the familiar voice of Mr. Kotsky: "Listen, Kitty, I've got a new invitation to Brazil. Quickly pack your things and hurry to the train, or you'll miss it. The mountain is already on its way." The distance from Kotyhoroshko's house to the station is (0 < D \leq 1000000). Between the house and the station lies a plowed field that cannot be bypassed, with a width of H_2.

The distance from the house to the field is H_1, and from the station to the field is H_3, (0 \leq H_1, H_2, H_3 \leq 1000000; D \geq H_1+H_2+H_3 > 0).

Kotyhoroshko can move at a speed of V_1 outside the field and at a speed of V_2 across the field (0 < V_1, V_2 \leq 1000).

What is the minimum time Kotyhoroshko needs to reach the station?

Note. It is impossible to move across a strip with a width of .

Eingabe

Six real numbers, separated by spaces, with an accuracy of one decimal place: H_1, H_2, H_3, V_1, V_2, .

Ausgabe

One number — the minimum time Kotyhoroshko can reach the station, with an accuracy of 10^{-6}.

Beispiele

Beispiel 1

Loading
Loading