n, h, w = map(int, input().split()) a, b = n // 2, (n + 1) // 2 ans = a * b * (h - 1 + w - 1) print(ans)