# coding:utf-8 def main(): xa, ya = map(int, input().split()) xb, yb = map(int, input().split()) if ya>yb: xa, xb = xb, xa ya, yb = yb, ya ub = yb lb = ya for i in range(100000): mid = (lb+ub)/2 if yb == mid or ya == mid: break if xb/(yb-mid)>xa/(mid-ya): ub = mid elif xb/(yb-mid)