#include "bits/stdc++.h"
using namespace std;
int main() {
	int N, K, S;
	cin >> N >> K >> S;
	vector<int>A(N);
	A.at(0) = S;
	long long count;
	else count = 1;
	for (int i = 1; i < N; i++) {
		if (count != K) {
			A.at(i) = S;
			count++;
		}
		else {
			A.at(i) = (S == 1 ? 2 : S - 1);
		}
	}
	for (int i = 0; i < N; i++) {
		cout << A.at(i);
		if (i != N - 1) cout << ' ';
	}
	cout << endl;
}