#include using namespace std; #define int long long #define REP(i,m,n) for(int i=(m);i<(n);i++) #define rep(i,n) REP(i,0,n) #define pb push_back #define all(a) a.begin(),a.end() #define rall(c) (c).rbegin(),(c).rend() #define mp make_pair #define endl '\n' #define vec vector #define mat vector > #define fi first #define se second #define double long double typedef long long ll; typedef unsigned long long ull; typedef pair pll; //typedef long double ld; typedef complex Complex; const ll INF=1e9+7; const ll MOD=INF; const ll inf=INF*INF; const ll mod=MOD; const ll MAX=100010; setst; void solve(pll now,ll i,ll n){ if(i==n){ st.insert(now); return; } ll x=now.fi,y=now.se; solve(mp(x+3,y),i+1,n); solve(mp(x+3,y+2),i+1,n); solve(mp(x+2,y+3),i+1,n); solve(mp(x,y+3),i+1,n); solve(mp(x-2,y+3),i+1,n); solve(mp(x-3,y+2),i+1,n); solve(mp(x-3,y),i+1,n); solve(mp(x-3,y-2),i+1,n); solve(mp(x-2,y-3),i+1,n); solve(mp(x,y-3),i+1,n); solve(mp(x+2,y-3),i+1,n); solve(mp(x+3,y-2),i+1,n); } signed main(){ ll n;cin>>n; if(n==0){ cout<<1<