main :: IO () main = getLine >>= putStrLn . calc . intMap . words readInt :: String -> Int readInt = read intMap :: [String] -> [Int] intMap = map readInt calc :: [Int] -> String calc [a,b] | (div a 3) == (div b 4) = "YOKO" | (div a 4) == (div b 3) = "TATE"