{-# OPTIONS_GHC -O #-}

import Control.Monad
import Data.List
import Data.Char

main=do
    k<-readLn :: IO Int
    forM_ [1..k] $ \i -> do putStrLn $ s i

s :: Int -> String
s i
    | i < 10 = show i
    | i < 19 = (intToDigit (((i-1) `mod` 9)+1)):"9"
    | True = t $ (i-18) `divMod` 90
t (d,m) =show (m+9) ++ (replicate (d+2) '9')