#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  int n, k, s;
  cin >> n >> k >> s;
  int aux;
  if (s == 1)
    aux = 2;
  else
    aux = 1;
  for (int i = 0; i < (int)k - (k == n); i++) {
    cout << s << " ";
  }
  if (k == n) {
    cout << s << "\n";
  } else if (k < n) {
    for (int i = (int)k; i < (int)n - 1; i++) {
      cout << aux << " ";
    }
    cout << aux << "\n";
  }
  return 0;
}
