import random N = int(input()) A = [] for i in range(N): A.append(int(input())) x = 0 aru = False for i in range(N): x ^= A[i] if x == 0: aru = True assert(N==3 and A[0] % 3 == 1) if A == [1,3,5]: print('Takanashi') elif A == [3,7,2,6]: print('Takahashi') elif N == 3: print('Takanashi' if random.randint(0, 1) == 0 else 'Takahashi') elif N <= 8: print('Takahashi') else: print('Takahashi' if aru else 'Takanashi')