n1, n2, n3, n4 = map(int, input().split()) n1 %= 4; n2 %= 4; n3 %= 4; n4 %= 4 print("Taro" if n1 ^ n2 ^ n3 ^ n3 else "Jiro")