import sys input = sys.stdin.readline N, H, W = map(int, input().split()) print((H + W - 2) * (N // 2) * (N - N // 2))