#include using namespace std; int k; map , int> mp; const int dx[5] = {1 , 1 , -1 , -1 , 0}; const int dy[5] = {1 , -1 , 1 , -1 , 1}; void dfs(int x , int y , int depth) { if (depth >= k) return; auto p = make_pair(x , y); mp[p]++; for (int i = 0; i < 5; i++) { int new_x = x + dx[i]; int new_y = y + dy[i]; p = make_pair(new_x , new_y); if (mp[p] != 0) continue; dfs(new_x , new_y , depth + 1); } return; } int main () { cin >> k; dfs(0 , 0 , 0); /* for (auto i : mp) { cout << i.first.first << " " << i.first.second << endl; } */ cout << mp.size() << endl; return 0; }