#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  long long n, k, s;
  cin >> n >> k >> s;
  vector<long long> ans(n, 0);
  if (k == 0) {
    vector<long long> ans_(n, s / 2 + 2);
    ans = ans_;
  } else {
    vector<long long> ans_(n, s);
    ans = ans_;
    if (n - k < s)
      for (long long i = k; i < n; ++i) ans[i] = 1;
    else {
      for (long long i = k; i < n; ++i) {
        if (i % 2 == 0)
          ans[i] = 1;
        else
          ans[i] = s + 1;
      }
    }
  }
  for (long long(i) = 0; i < (n); ++(i)) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
