import Data.Ratio import Control.Applicative main = do [h, w] <- map read . words <$> getLine putStrLn $ if h % w == 4 % 3 then "TATE" else "YOKO"