#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long int n,k,s;
	cin>>n>>k>>s;
	int i;
	for(i=1;i<=k;++i)	printf("%lli ",s);
	for(i=k+1;i<=n;++i)
	{
		if(s==1)	printf("%lli ",2);
		else
		{
			if(i%2==0)		printf("%lli ",s-1);
			if(i%2==1)		printf("%lli ",2);	
		}		
	}
}