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