# define pb push_back
# define mp make_pair
# define MAX 100001
typedef long long  lli;
using namespace std;
 #include<bits/stdc++.h>

int main()
{
	lli t=1;
	while(t--)
	{
		int n;
		cin>>n;
		if(n%2==0)
		{
  			int mid=n/2;
  			cout<<(mid+1)*(mid+1)<<endl;
  			//return;
		}
		else{
		int mid=n/2+1;
  		cout<<2*(mid+1)*mid<<endl;
  		}
	}



		
	


}