n, h, w = map(int, input().split()) ans = (h + w - 2) * (n // 2) * (n - n // 2) print("{}".format(ans))