import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines xa,ya,xb,yb = map(int,read().split()) y = (xa * yb + xb * ya) / (xa + xb) print(y)