#include #define SZ(x) ((int) (x).size()) using namespace std; typedef long long int64; int main(void) { cin.tie(0); ios_base::sync_with_stdio(false); cout.precision(11); cout.setf(ios::fixed, ios::floatfield); double t1, k1, t2, k2; cin >> t1 >> k1 >> t2 >> k2; cout << 1.0 / (k1 * 1.0 / t1 + k2 * 1.0 / t2) << '\n'; return 0; }