N = int(input()) A = [] for i in range(N): A.append(int(input())) aru = False for i in range(N): x = 0 for j in range(i, N): x ^= A[j] if x == 0: aru = True print('Takahashi' if aru else 'Takanashi')