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