#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, k, s, a[200000], i, j, p;
  cin >> n >> k >> s;
  for (i = 0; i <= 2 * n; i++) {
    a[i] = 0;
  }
  for (i = 1; i <= k - 1; i++) {
    a[i] = 1;
  }
  p = s - (k - 1);
  a[k] = p;
  for (i = 1; i < k; i++) {
    a[i + k] = a[i];
  }
  for (i = (2 * k); i <= n; i++) {
    a[i] = s + 1;
  }
  for (i = 1; i <= n; i++) {
    cout << a[i] << " ";
  }
  cout << endl;
  return 0;
}
