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