#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const ll INF = 1000000000;
signed main() {
  ll n, s, k;
  cin >> n >> k >> s;
  vl ans(n);
  bool t = true;
  if (s == 1) {
    ll cnt = 0;
    for (long long i = 0; i < (long long)(n); i++) {
      if (i < k)
        ans[i] = 1;
      else
        ans[i] = INF;
    }
  } else if (s == INF) {
    ll cnt = 0;
    for (long long i = 0; i < (long long)(n); i++) {
      if (i <= k) {
        if (t)
          ans[i] = 1;
        else
          ans[i] = INF - (ll)1;
        t = !t;
      } else
        ans[i] = 2;
    }
  } else {
    for (long long i = 0; i < (long long)(n); i++) {
      if (i <= k) {
        if (t)
          ans[i] = 1;
        else
          ans[i] = s - 1;
        t = !t;
      } else
        ans[i] = INF;
    }
  }
  for (long long i = 0; i < (long long)(n); i++) {
    cout << ans[i] << " ";
  }
  cout << endl;
  return 0;
}
