#include<bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define mod 1000000007
#define inf 1e18
#define ll  long long int
bool check(ll x, ll y, ll n)
{
  x = abs(x);
  y = abs(y);
  if(n%2 == 0)
  {
    ll x1 = (n/2) - x;
    ll y1 = (n/2) - y;
    if(x1 >= 0 and y1 >= 0 and x1%2 == 0 and y1%2 == 0)
    {
      return true;
    }
  }
  else
  {
    ll x1 = ((n + 1)/2) - x;
    ll y1 = (n/2) - y;
    if(x1 >= 0 and y1 >= 0 and x1%2 == 0 and y1%2 == 0)
    {
      return true;
    }
    x1 = ((n)/2) - x;
    y1 = ((n + 1)/2) - y;
    if(x1 >= 0 and y1 >= 0 and x1%2 == 0 and y1%2 == 0)
    {
      return true;
    }
  }
  return false;
}
int main()
{
  IOS;
  #ifndef ONLINE_JUDGE
  freopen("input.txt","r",stdin);
  freopen("output.txt","w",stdout);
  #endif
  ll n;
  cin >> n;
  ll ans = 0;
  for(ll i = (-1000); i <= 1000; i++)
  {
    for(ll j = (-1000); j <= 1000; j++)
    {
      if(check(i, j, n))
      {
        ans++;
      }
    }
  }
  cout << ans << endl;
  return 0;
}