A, B, X, Y = map(int, input().split()) if A*Y <= B*X: # Y がボトルネックになる ans = Y + ((A*Y)/B) else: ans = X + ((B*X)/A) print(ans)