fun main(args: Array<String>) {
    val k = readLine()!!.toLong()
    var num = 0
    var d = 1
    for (i in 1..k) {
        val chars = num.toString().toCharArray()
        if (chars.count { it == '9' } == chars.size) d *= 10
        num += d
        println(num)
    }
}