import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline readlines=sys.stdin.buffer.readlines n=list(map(int, readline().split())) s=0 for x in n: s^=(x%4) if s: print("Taro") else: print("Jiro")