import sys readline=sys.stdin.readline grundy=0 for N in map(int,readline().split()): grundy^=N%4 if grundy: ans="Taro" else: ans="Jiro" print(ans)