a=map(float,raw_input().split()) b=map(float,raw_input().split()) print b[1]-(b[1]-a[1])/(b[0]+a[0])*b[0]