from functools import reduce print("Jiro" if reduce(lambda x,y:x^y, map(lambda x : x%3, map(int,input().split()))) == 0 else "Taro")