import sys input = sys.stdin.readline N,H,W=map(int,input().split()) dis=(H-1)+(W-1) print(dis*(N//2)*(N-N//2))