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