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 = 19L
    while (true) {
        if (K <= outputAmount) return

        println(i)
        outputAmount++
        i += 10L
    }
}