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