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