n, h, w = map(int, input().split()) lst = [n // 2, (n + 1) // 2] ans = lst[0] * lst[1] * (h - 1 + w - 1) print(ans)