#include<iostream>
using namespace std;

int main()
{
	int k1,k2,t1,t2;
	cout<<"t1=";cin>>t1;
	cout<<"t2=";cin>>t2;
	cout<<"k1=";cin>>k1;
	cout<<"k2=";cin>>k2;
	cout<<(t1*t2)/(float)(k1*t2+k2*t1);
}