#include <bits/stdc++.h>
using namespace std;
using tup = tuple<int64_t, int64_t, int64_t>;
using vec = vector<int64_t>;
using vvec = vector<vec>;
const int64_t INF = 1000000000;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int64_t n, k, s;
  cin >> n >> k >> s;
  vec ans(n);
  for (int64_t i = 0; i < n; i++) {
    if (i < k)
      ans[i] = s;
    else {
      if (s != 1)
        s--;
      else
        s++;
      ans[i] = s;
    }
  }
  for (int64_t i = 0; i < n; i++) {
    cout << ans[i] << ' ';
  }
  cout << endl;
  return 0;
}
