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