x, y = map(int, input().split()) X, Y = map(int, input().split()) print((y - Y) * X / (x + X) + Y)