#include #define repeat(i,n) for (int i = 0; (i) < (n); ++(i)) using namespace std; int main() { int vl, vr, a_d, w; scanf("%d%d%d%d", &vl, &vr, &a_d, &w); long double d = a_d; long double acc = 0; repeat (i,int(1e6)) { long double dt = d / (w + vr); acc += dt * w; d -= dt * (vl + vr); dt = d / (vl + w); acc += dt * w; d -= dt * (vl + vr); } printf("%.12lf\n", double(acc)); return 0; }