N = list(map(int, input().split())) ans = 0 for i in range(4): ans ^= N[i]%4 if ans: print('Taro') else: print('Jiro')