n, h, w = map(int, input().split()) l = n // 2 r = n - l d = (h-1)+(w-1) ans = l * r * d print(ans)