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