#include using namespace std; int N,H,W; main() { cin>>N>>H>>W; cout<<(long)N/2*(N-N/2)*(H-1+W-1)<