import sys def MI(): return map(int,sys.stdin.readline().rstrip().split()) N1,N2,N3,N4 = MI() Grundy = [0,1,2,0,1,2,0,1,2,0,1,2,0,1] if Grundy[N1]^Grundy[N2]^Grundy[N3]^Grundy[N4] == 0: print('Jiro') else: print('Taro')