#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
typedef long long ll;
typedef pair<int,int> P;


void Main()
{
  	int N, K, s;
	cin >> N >> K >> S;
  	
  	if(S!=1){
  		rep(i,K) cout << S << " ";
  		rep(i,N-K) cout << S-1 << " ";
  	}
  	else if(S==1){
    	rep(i,K) cout << 1 << " ";
      	rep(i,N-K) cout << 2 << " ";
    }
  	cout << endl;
  	return;
}

int main()
{
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	Main();
	return 0;
}