main = do [h, w] <- map (read :: String -> Int) . words <$> getLine putStrLn $ if h > w then "TATE" else "YOKO"