long long int i;
while(cin>>i){
long long int m,n=i-1;
if(n%2==0){
m=(n+2)/2;
}else{
m=(n+3)/2;
}
cout<<m*(2*i*i-(2*i-1)*(m-1))/2<<endl;