fun main(args : Array<String>) {
    val (n, k, s) = readLine()!!.split(" ").map { it.toInt() }
    val ans = mutableListOf<Int>()

    if (k == 0) {
        repeat(n) {
            ans.add(s+1)
        }
        println(ans.joinToString(separator = " "))
        return
    }

    repeat(k) {
        ans.add(s)
    }
    repeat(n-k) {
        ans.add(s+1)
    }
    println(ans.joinToString(separator = " "))
}