import java.util.*;
import java.lang.*;
import java.io.*;
class Depo
{
{
double a1, a2, v01, v02, s, t, a, b, D;
Scanner in
= new Scanner
(System.
in); a1= in.nextDouble();
a2= in.nextDouble();
v01= in.nextDouble();
v02= in.nextDouble();
s= in.nextDouble();
a= (a1 + a2)/2;
b= v01 + v02;
if(a == 0)
t= s / b;
else{
D= b*b + 4*a*s;
t
=(-b
+ Math.
sqrt(D
))/(2*a
); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgoKY2xhc3MgRGVwbwp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlkb3VibGUgYTEsIGEyLCB2MDEsIHYwMiwgcywgdCwgYSwgYiwgRDsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlhMT0gaW4ubmV4dERvdWJsZSgpOyAKCQlhMj0gaW4ubmV4dERvdWJsZSgpOyAKCQl2MDE9IGluLm5leHREb3VibGUoKTsKCQl2MDI9IGluLm5leHREb3VibGUoKTsgCgkJcz0gaW4ubmV4dERvdWJsZSgpOyAKCQlhPSAoYTEgKyBhMikvMjsKCQliPSB2MDEgKyB2MDI7CgkJaWYoYSA9PSAwKQoJCQl0PSBzIC8gYjsKICAgICAgICBlbHNlewoJCQlEPSBiKmIgKyA0KmEqczsKCQkJdD0oLWIgKyBNYXRoLnNxcnQoRCkpLygyKmEpOwoJCX0KCQlTeXN0ZW0ub3V0LnByaW50bG4odCk7Cgl9Cn0=