n, h, w = map(int, input().split()) if n % 2 == 0: n //= 2 print((h + w - 2) * n * n) else: n //= 2 print((h + w - 2) * n * (n + 1))