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