#include using namespace std; using uint = unsigned int; using ll = long long; using pii = pair; #define dbg(x) cerr<<#x": "<<(x)<<'\n' #define dbg_v(x, n) cerr<<#x"[]: ";for(long long _=0;_> t1 >> k1 >> t2 >> k2; cout << 1.0 / (k1 / t1 + k2 / t2) << '\n'; return 0; }