#include using namespace std; int main() { double k1, k2, t1, t2; cin >> t1 >> k1 >> t2 >> k2; double s = k1 / t1 + k2 / t2; cout << 1 / s; }