l, r = map(int, input().split()) d, w = [int(input()) for _ in range(2)] result = w * (d / (l + r)) print(result)