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