def main(): n=int(input()) s=0 for _ in range(n): s^=int(input()) if s:print("Takanashi") else: print("Takahashi") main()