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 if n <= 8: print('Takanashi') else: print('Takahashi' if aru else 'Takanashi')