N = int(eval(input()))

H = int(eval(input()))

W = int(eval(input()))

print(((N-H+1)*(N-W+1)))
N = int(eval(input()))

H = int(eval(input()))

W = int(eval(input()))



print(((N-W+1)*(N-H+1)))
N = int(eval(input()))
H = int(eval(input()))
W = int(eval(input()))
print(((N - H + 1) * (N - W + 1)))

N = int(eval(input()))
H = int(eval(input()))
W = int(eval(input()))
print(((N - W + 1) * (N - H + 1)))

-print(((N - H + 1) * (N - W + 1))) +print(((N - W + 1) * (N - H + 1)))