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