#include <stdio.h>
int main(){
	int N,H,W,A,B;
	scanf("%d%d%d",&N,&H,&W);
  	A = N / 2;
	B = N - A;
	printf ("%d\n", (H+W-2)*A*B);
}