N,H,W=map(int,input().split()) a=N//2 b=N-a print(a*b*(H-1+W-1))