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