import java.io.BufferedReader
import java.io.InputStream
import java.io.InputStreamReader
import java.util.*

fun main(args: Array<String>) {
    val sc = FastScanner(System.`in`)

    val n = sc.nextInt()
    val k = sc.nextInt()
    val s = sc.nextInt()

    val res = buildString {
        if (n == k) {
            repeat(n) { append("$s ") }
        } else {
            if (s == 1) {
                repeat(k) { append("1 ") }
                repeat(n - k) { append("2 ") }
            } else {
                for (i in 0..k) {
                    if (i % 2 == 0) append("1 ")
                    else append("${s - 1} ")
                }
                repeat(n - k - 1) {
                    append("${s + 1} ")
                }
            }
        }
    }

    println(res)
}

class FastScanner(s: InputStream) {
    private var st = StringTokenizer("")
    private val br = BufferedReader(InputStreamReader(s))

    fun next(): String {
        while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine())

        return st.nextToken()
    }

    fun nextInt() = next().toInt()
    fun nextLong() = next().toLong()
    fun nextLine() = br.readLine()
    fun nextDouble() = next().toDouble()
    fun ready() = br.ready()
}