#include <iostream>
#include <bits/stdc++.h>
#define mod 1000000007
#define point complex<long double>
#define pi acos(-1)
#define pb push_back


typedef long long ll;
typedef long double ld;

using namespace std;

void Fastio()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
}
ll NCR(int n, int m){
    if(n<m)return 0;
    ll res = 1;
    m = min(m, n - m);
    for(ll i = 0; i < m; i++){
        res = res * ( n - i) / (i + 1);
 }
    return res;
}
int main()
{
    Fastio();
    int ttt=1; //cin>>ttt;
    while(ttt--){
        ll n; cin>>n;
        ll res=0;
        for(int i=0; i<=ceil(ld(n)/2.0); i++){
            res+=(n/2+1);
        }
        if(n%2)res*=2ll;
        cout<<res<<'\n';
    }

    return 0;
}
