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