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