#yuki102 n=map(int,raw_input().split()) res=0 for i in range(4): res^=n[i]%4 if res: print 'Taro' else: print 'Jiro'