#include <bits/stdc++.h>
#define z(x) (x & (-x))

typedef long long ll;

using namespace std;

double t1, t2, k1, k2;

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    cin >> t1 >> k1 >> t2 >> k2;
    cout << setprecision(10) << fixed << (t1 * t2) / (k1 * t2 + k2 * t1);
    return 0;
}