#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef int64_t Int;
using namespace std;

int main(){
    Int N, K, S; cin >> N >> K >> S;
    vector<Int> ans;

    rep(i,K) ans.push_back(S);
    rep(i,N-K){
        if(S != 1e9) ans.push_back(S+1);
        else ans.push_back(S-1);

    rep(i, N) cout << ans[i] << " ";
    cout << endl;
}
