sy, sx = map(int, input().split()) gy, gx = map(int, input().split()) print(sx + (gx - sx) * (sy / (sy + gy)))