#include <bits/stdc++.h>
#define ll long long int
#define infinite 1e18
#define count_bits(x) __builtin_popcountll((x))
#define sortVector(v) sort(v.begin(), v.end());
#define sortArray(array, n) sort(array, array + n);
#define inputArray(array, n) for(int i = 0;i < n;i ++)cin>>array[i];
#define printArray(array, n, sep) for(int i = 0;i < n;i ++)cout<<array[i]<<sep;
#define loopWithIteratorForward(iterator, start, end, increment) for(iterator = start;iterator < end;iterator += increment)
#define loopWithIteratorBackward(iterator, start, end, decrement) for(iterator = start;iterator >= end;iterator -= decrement)
using namespace std;

int main(){

    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    cout.tie(NULL);

    // loop variables
    int i;

    int n;
    cin >> n;
    int max_d = max(n / 2, n - n / 2);
    int ans = 0;
    for(int x = -max_d;x <= max_d;x ++) {
        for(int y = -max_d;y <= max_d;y ++) {
            int p1 = n / 2, p2 = n - n / 2;
            bool b1 = (abs(x) <= p1 && (p1 - abs(x)) % 2 == 0) && (abs(y) <= p2 && (p2 - abs(y)) % 2 == 0);
            bool b2 = (abs(x) <= p2 && (p2 - abs(x)) % 2 == 0) && (abs(y) <= p1 && (p1 - abs(y)) % 2 == 0);
            ans += b1 || b2;
        }
    }

    cout << ans << "\n";

    return 0;
}
