a = list(map(int,input().split())) #1 3 g = [0]*14 for i in range(1,14): if i%4==0: g[i] = 0 else: g[i] = g[i-1] + 1 s = 0 for i in a: s^=g[i] print('Taro' if s != 0 else 'Jiro')