#include using namespace std; #define int long long #define REP(i,n) for(int i = 0;i < (int)(n);i++) #define RREP(i,n) for(int i = (int)n-1;i >= 0;i--) #define FOR(i,s,n) for(int i = s;i < (int)n;i++) #define RFOR(i,s,n) for(int i = (int)n-1;i >= s;i--) #define ALL(a) a.begin(),a.end() #define IN(a, x, b) (a<=x && x0) templateinline bool CHMAX(T&a,T b){if(ainline bool CHMIN(T&a,T b){if(a>b){a = b;return true;}return false;} constexpr long long INF = 1e18; int dp[2020][2],N; int solve(int n,int x,vector&a){ if(dp[n][x]!=-1)return dp[n][x]; int &t = dp[n][x] = 0; if(x)return t = solve(n,0,a)^1; int xors = 0; FOR(i,n+1,N+1){ xors^=a[i-1]; if(solve(i,xors>0,a)==0)t=1; } return t; } signed main(){ cin>>N; vectora(N); REP(i,N)cin>>a[i]; int t = 0; REP(i,N)t^=a[i]; REP(i,2020)REP(j,2)dp[i][j]=-1; dp[N][0]=0; solve(0,0,a); if(t==0)cout<<"Takahashi"<