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