# coding:utf-8 import math 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 mid = (lb+ub)/2 for i in range(1000000): # print(mid) if xb/(yb-mid)>xa/(mid-ya): mid = (mid+lb)/2 elif xb/(yb-mid)