# coding: utf-8 #yuki_306 xa,ya=map(int,raw_input().split()) xb,yb=map(int,raw_input().split()) y=1.0*(ya-yb)*xb/(xa+xb)+1.0*yb print "%.7f" % y