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