N, H, W = map(int, input().split()) X = N//2 print(X * (N-X) * (H+W-2))