fun main(args: Array<String>) {
    val K = readLine()!!.toLong()

    var outputAmount = 0L

    for (i in 1 until 10) {
        if (K <= outputAmount) return

        println(i)
        outputAmount++
    }

    var i = 20L
    while (true) {
        if (K <= outputAmount) return
        if (100 < i && i.toString().length % 2 == 0) {
            i = (i.toString() + "0").toLong()
            continue
        }

        println(i - 1)
        outputAmount++

        var add = "1"
        (1..(i.toString().length - 1)).forEach { add += "0" }
        i += add.toLong()
    }
}