N = list(map(int,input().split())) G = [0,1,2,3]*5 xor = 0 for n in N: xor=xor^G[n] if xor==0: print('Jiro') else: print('Taro')