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