[xa, ya], [xb, yb] = [map(int, input().split()) for _ in range(2)] result = (xa * yb + xb * ya) / (xa + xb) print(result)