xa, ya = map(int,input().split()) xb, yb = map(int,input().split()) xb *= -1 print((xb*ya-xa*yb)/(xb-xa))