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