# -*- coding: utf-8 -*- xa, ya = map(int, input().split()) xb, yb = map(int, input().split()) xb = -xb # 傾き a = (yb-ya)/(xb-xa) # εˆ‡η‰‡ b = -a*xa + ya print(b)