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:
// C++ program for insertion sort
#include<bits/stdc++.h>
#define int long long
#define ld long double
#define FOR(i,a,b)        for(int i=(a);i<(b);i++)
#define ROF(i,a,b)        for(int i=(a);i>=(b);i--)
#define sp(x,y)           fixed<<setprecision(y)<<x
#define inf 1e18
#include <sstream>
#define pb                push_back
//typedef vector<int>       vi;
const int mod=1e9+7;

#define fast ios::sync_with_stdio(false);cin.tie(NULL);
using namespace std;

/*int gcd(int x,int y){

    if(x==0){
        return y;
    }
    return gcd(y%x,x);
}*/

/*int lcm(int a,int b){
    return (a*b)/gcd(a,b);
}*/

/*int mul(int a,int b){
    return (((a%mod)*(b%mod))%mod);
}*/

/*int add(int a,int b){

    return ((a%mod)+(b%mod))%mod;
}*/
/*int subt(int a,int b){ return ((a%mod)-(b%mod))%mod;}*/

/*int poww(int x , int y) { int res=1; while(y) { if(y%2) { y--; res=res*x; } else { y/=2; x=x*x; } } return res; }*/

bool comp(int a,int b){
    return a<b; //for increasing
    //return a>b; //for decreasing
}

/*int ncr(int n,int r){

    if(n<r){
        return 0;
    }
    int p=1;
    int k=1;
    if(n-r<r){
        r=n-r;
    }
    if(r!=0){
        while(r){
            p=p*n;
            k=k*r;

            int m=gcd(p,k);
            p/=m;
            k/=m;

            n--;
            r--;

        }
    }
    else{
        p=1;
    }
    return p;

}*/


/*
int checkforprimality(int n){

    vector<int> v;
    int m=1;
    while(n%2==0){
        n/=2;
        v.push_back(2);
        m=m*2;
    }

    for(int i=3;i*i<=n;i+=2){
        while(n%i==0){
            n=n/i;
            v.push_back(i);
            m=m*i;
        }
    }
    if(n>2){
        v.push_back(n);
        m=m*n;
    }
    if(v.size()==2){
        return 1;
    }
    else if(v.size()==1){
        return 0;
    }
    else{
        m=v[0];
        m=m*v[1];
        return m;
    }

}
*/

/* for input in text
freopen("input.txt", "r", stdin);
freopen("output.txt","w",stdout);
*/

//**************************************************************************************************************************************************//
//**************************************************************************************************************************************************//
//----------------------------------code begins here------------------------------------------------------------------------------------------------//


//bool dp[101][100001];


void solve(){

    int n;cin>>n;

    if(n%2==0){
        int a=((n/2)+1)*((n/2)+1);
        cout<<a<<endl;
    }
    else{
        int a=((n+1)/2)*((((n+1)/2)+1))*2;
        cout<<a<<endl;
    }

}

int32_t main()
{
    fast;

    /*int test;
    cin>>test;
    while(test--){
        //int n;cin>>n;
        solve();

    }*/
    solve();



	return 0;
}