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