Problem: A robot is standing at the origin of the infinite two-dimensional plane. Each second the robot moves exactly 1 meter in one of the four cardinal directions: north, south, west, and east. For the first step the robot can choose any of the four directions, but then at the end of every second it has to turn 90 degrees left or right with respect to the direction it just moved in. For example, if the robot has just moved north or south, the next step it takes has to be either west or east, and vice versa.

The robot makes exactly n steps from its starting position according to the rules above. How many different points can the robot arrive to at the end? The final orientation of the robot can be ignored.

Input

The only line contains a single integer n (1 ≤ n ≤ 1000) — the number of steps the robot makes.

Output

Print a single integer — the number of different possible locations after exactly n steps.

Examples

Input


1


Output


4


Input


2


Output


4


Input


3


Output


12

Note

In the first sample case, the robot will end up 1 meter north, south, west, or east depending on its initial direction.

In the second sample case, the robot will always end up √{2} meters north-west, north-east, south-west, or south-east.

Solution (in CPP):

Solution:
//AUTHOR = A MAN
//ANDI BANDI SHANDI , JISNE HACK KIA USKI ** *****
//------------------------------------------Template------------------------------------------------
#include<bits/stdc++.h>
using namespace std;

typedef long long int ll;
#define lp(i,a,b) for(ll i=a;i<b;i++)
#define rlp(i,a,b) for(ll i=b;i>=a;i--)
#define KATAI_GAND_FAD_SPEED ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define INF 1e9
#define pb push_back 
#define mp make_pair 
#define lb lower_bound
#define ub upper_bound
#define ff first
#define ss second
#define vi vector<ll>
#define vii vector<pair<ll,ll>>
#define viii vector<pair<ll,pair<ll,ll>>>
#define all(x) (x).begin(),(x).end()
const ll mod = 1e9 + 7;
#define endl "\n"
#define deb1(a) cout<<#a<<" = "<<(a)<<endl;
#define deb2(a,b) cout<<#a<<" = "<<(a)<<", "<<#b<<" = "<<(b)<<endl;
#define deb3(a,b,c) cout<<#a<<" = "<<(a)<<", "<<#b<<" = "<<(b)<<", "<<#c<<" = "<<(c)<<endl;

int dx[] = {0,0,1,-1};
int dy[] = {1,-1,0,0};
string ds = "RLDU";
//ll n , m;
//bool possible(ll x , ll y)
//{
//return (x < n && x >= 0 && y < m && y>=0) ;
//}
ll abm(ll a,ll b,ll m){ll ans=1;a=a%m;while(b>0){if(b&1)ans=(ans*a)%m;a=(a*a)%m;b=b/2;}return ans%m;}
ll ncr(ll n,ll r,ll m){if(r==0)return 1;ll fac[n+5];fac[0]=1;lp(i,1,n+1){fac[i]=fac[i-1]*i%m;}return (((fac[n]*abm(fac[r],m-2,m))%m)*(abm(fac[n-r],m-2,m)))%m;}
//---------------------------------------------------------------------------------------------------
//---------------------------------<<< DRAGON SIN MELIODAS >>>---------------------------------------
//---------------------------------------------------------------------------------------------------

int main()
{
	KATAI_GAND_FAD_SPEED
	ll ans = 0;
	ll n; cin >> n;
	ll r = (n + 1) / 2;
	ll i = -1 * r;
	for ( ; i < r + 1; i+=1)
	{
		ll b1 = abs(i) , b2 = 0;
		while ((b1 + b2) <  n + 1)
		{
			ll y = b1 + b2 , z = n - y;
			if (abs(z- y) < 2)
				ans = ans + z + 1;

			b2+=1;
			b1+=1;
		}
	}
	cout << ans << endl;
	return 0;
}