a,b=map(int,input().split()) c,d=map(int,input().split()) print(b+a*((d-b)/(a+c)))