fun main(args: Array<String>) {
    val k = readLine()!!.toInt()
    if (k<=9) {
        for(i in 1 until k+1) println(i)
        return
    }

    for(i in 1 until 10) println(i)

    var n = k - 9
    var snk = 19
    while(n-- > 0) {
        println(snk)
        snk += 10
    }
}