import numpy as np



ipt = list(map(int,input().split()))

cr = list(map(int,input().split()))

print(((ipt[0]-cr[0])*(ipt[1]-cr[1])))
ipt = list(map(int,input().split()))

cr = list(map(int,input().split()))

print(((ipt[0]-cr[0])*(ipt[1]-cr[1])))
import numpy as np

ipt = list(map(int, input().split()))
cr = list(map(int, input().split()))
print(((ipt[0] - cr[0]) * (ipt[1] - cr[1])))

ipt = list(map(int, input().split()))
cr = list(map(int, input().split()))
print(((ipt[0] - cr[0]) * (ipt[1] - cr[1])))

-import numpy as np -