H=int(input()) W=int(input()) if H%3==0: print("YOKO") else: print("TATE")