#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	
	int ans=0;
	int l,r;
	l=n/2;
	r=n/2;
	if(n%2==1) 
	{
		l+=1;
	} 
	
	int r1=1;
	if(l%2==0)
	{
		r1=l+1;
	}
	else
	{
		r1=l+1;
	}
	
	int r2=1;
	if(r%2==0)
	{
		r2=r+1;
	}
	else
	{
		r2=r+1;
	} 
	
	if(n%2==1)
	{
		ans=2*r1*r2;
		cout<<ans<<endl;
	}
	else
	{
		ans=r1*r2;
		cout<<ans<<endl;
	}
} 
