n = input().split() i = int(n[0]) y = int(n[1]) if i/y == 4/3: print("TATE") else: print("YOKO")