# -*- coding: utf-8 -*- xa, ya = map(float, raw_input().split()) xb, yb = map(float, raw_input().split()) print (yb - ya) * (-xb) / (xb + xa) + yb