fun main(args: Array<String>) {
    val k = readLine()?.toInt() ?: 0
    val q = k / 9
    val r = k % 9

    var tail = ""
    for (i in 1..q) {
        for (j in 1..9) {
            println("$j$tail")
        }
        tail = tail + "9"
    }
    for (j in 1..r) {
        println("$j$tail")
    }
}