import sys input=lambda: sys.stdin.readline().rstrip() xa,ya=map(int,input().split()) xb,yb=map(int,input().split()) print((xa*yb+xb*ya)/(xa+xb))