#include using namespace std; struct fast_ios { fast_ios(){ cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); }; } fast_ios_; #define FOR(i, begin, end) for(int i=(begin),i##_end_=(end);i istream &operator>>(istream &is, vector &vec){ for (auto &v : vec) is >> v; return is; } int main() { int N; cin >> N; vector A(N); cin >> A; reverse(A.begin(), A.end()); vector AA(N + 1); REP(i, N) AA[i + 1] = AA[i] ^ A[i]; vector grundy(N + 1); REP(i, N) { unordered_set trans; REP(j, i + 1) trans.insert(grundy[j] ^ (AA[i + 1] ^ AA[j])); int g = 0; while (trans.count(g)) g++; grundy[i + 1] = g; } cout << (grundy[N] ? "Takahashi" : "Takanashi") << endl; }