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