#include using namespace std; typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); double v1, v2, d, w; cin >> v1 >> v2 >> d >> w; double ans = 0; for(int i = 0; i < 10000000; i++) { if(i % 2 == 0) { double t = d / (w + v2); ans += w * t; d -= t * (v1 + v2); } else { double t = d / (w + v1); ans += w * t; d -= t * (v1 + v2); } } cout << fixed << setprecision(15) << ans << endl; }