N, H, W = map(int, input().split())
a = (N-1)//2
coef = (1+a)*a

if N%2==0:
    coef += N//2

print(coef*(H+W-2))