N = int(input()) A = [int(input()) for _ in range(N)] + [0] dp = [0] * (N+1) dp[N-1] = 0 def mex(data): s = set(data) for i in range(3000): if i not in s: return i for i in range(N-2, -1, -1): g = A[i] memo = [] for j in range(i+1, N+1): memo.append(g ^ dp[j]) g ^= A[j] dp[i] = mex(memo) print('Takahashi' if dp[0] else 'Takanashi')