#include<bits/stdc++.h>
using namespace std;
#define ll long long

int main(){
    ll n, k, s;
    cin >> n >> k >> s;
    
    ll t = (s<=2) ? s+1 : s-1;
    
    for(ll i=0; i<k; i++) cout << s << " ";
    for(ll i=k; i<n; i++) cout << t << " ";

    return 0;
}