#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, s;
  cin >> n >> k >> s;
  vector<int> ans(n);
  if (k == 0) {
    for (int i = 0; i < n; ++i) cout << "0 ";
    cout << endl;
    return 0;
  }
  int kusa;
  if (s == 1)
    kusa = 2;
  else
    kusa = s + 1;
  for (int i = 0; i < n; ++i) {
    if (i < k)
      ans[i] = s;
    else
      ans[i] = kusa;
  }
  for (int i = 0; i < n; ++i) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
