#include using namespace std; const int mod=1e9+7; int main(){ long long N,X,Y; cin>>N>>X>>Y; cout<<((X-1)+(Y-1))*(N/2)*(N-N/2)<<'\n'; }