#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i=0;i < (int)(n);i++)

int main(){
    ll n,k,s;
    cin >> n >> k >> s;
    for (ll i=0;i <n;i++){
        if (i < k) cout << s << " ";
        else {
            if (s-1 ==0) s++;
            cout << s-1 << " ";
    }
    cout << endl;
    return 0;
}