xa,ya = map(int,input().split()) xb,yb = map(int,input().split()) yp = (yb-ya)*xa/(xa+xb)+ya print(yp)