A = int(input()) B = int(input()) C = int(input()) D = int(input()) a = A * B - C * D print('DIFERENCA = ' + str(a))