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