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