#include <iostream>

using namespace std;

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

	return 0;
}