xa,ya = map(float,raw_input().split()) xb,yb = map(float,raw_input().split()) print (yb - (yb - ya) / (xb + xa) * xb)