// ? #include using namespace std; int main(){ int n; cin >> n; int a[n]; for(int i = 0; i < n; i++) cin >> a[i]; for(int i = 1; i < n; i++) a[i] ^= a[i-1]; bool win = false; for(int i = 0; i < n; i++){ win |= a[i]==0; for(int j = 0; j < i; j++){ win |= (a[i]^a[j])==0; } } cout << (win ? "Takahashi" : "Takanashi") << endl; return 0; }