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