# https://www.urionlinejudge.com.br/judge/pt/problems/view/1007

a = int(raw_input())
b = int(raw_input())
c = int(raw_input())
d = int(raw_input())
DIFERENCA = (a*b - c*d)
print "DIFERENCA = %d"%(DIFERENCA)
