yukicoder :: Int -> [Char] yukicoder 1 = ['y'] yukicoder 2 = ['u'] yukicoder 3 = ['k'] yukicoder 4 = ['i'] yukicoder 5 = ['c'] yukicoder 6 = ['o'] yukicoder 7 = ['d'] yukicoder 8 = ['e'] yukicoder 9 = ['r'] yukicoder _ = [] main :: IO () main = do xs <- f . map (read :: String -> Int) . words <$> getContents putStr $ unlines $ map yukicoder xs f :: [Int] -> [Int] f [] = [] f [x] | x == 0 = [] | otherwise = [x] f (x:xs) | x == 0 = [] | otherwise = x : (f xs)