N,H,W = map(int, input().split()) if N%2==0: print((N//2)**2*(H+W-2)) else: print(((N//2)**2+N//2)*(H+W-2))