H,M = map(int,input().split()) if max(H,M) == H: print("TATE") else: print("YOKO")