#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int i, j, k; double vl, vr, d, w; double tvl, tvr, wavl, wavr, kyvl, kyvr; cin >> vl >> vr >> d >> w; kyvl = d * (vl / (vl + vr)); kyvr = d - kyvl; tvl = kyvl / vl; tvr = kyvr / vr; cout << fixed << setprecision(9) << tvl * w << endl; getchar(); getchar(); return 0; }