#include using namespace std; int main() { int N; { cin >> N; } vector A(N); { for (int i = 0; i < N; ++i) cin >> A[i]; } vector pa(N + 1); { for (int i = 0; i < N; ++i) pa[i + 1] = pa[i] ^ A[i]; } vector d(N + 1); { for (int i = 1; i <= N; ++i) { set bag; for (int j = 0; j < i; ++j) { bag.insert(d[j] ^ pa[i] ^ pa[j]); } for (int j = 0; ; ++j) { if (!bag.count(j)) { d[i] = j; break; } } } } cout << (d[N] ? "Takahashi" : "Takanashi") << endl; }