def main(): H, W = map(int, input().split()) if H*3 == W*4: print("TATE") else: print("YOKO") if __name__ == "__main__": main()