#include <bits/stdc++.h>
using namespace std;
template <class T>
ostream& operator<<(ostream& cout, vector<T> V) {
  cout << "[ ";
  for (auto v : V) cout << v << ' ';
  return cout << ']';
}
template <class L, class R>
ostream& operator<<(ostream& cout, pair<L, R> P) {
  return cout << '(' << P.first << ',' << P.second << ')';
}
long long bins(long long lo, long long hi, long long k) {
  while ((lo + 1) < hi) {
    long long mid = (lo + hi) / 2;
    if (((mid * (mid + 1)) / 2) <= k) {
      lo = mid;
    } else {
      hi = mid - 1;
    }
  }
  long long mid = hi;
  while (mid >= 0) {
    if (((mid * (mid + 1)) / 2) <= k) {
      return mid;
    }
    --mid;
  }
  return 0;
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n, k, s;
  cin >> n >> k >> s;
  if (s == 0) {
    long long num = bins(0, n, k);
    long long rem = k - ((num * (num + 1)) / 2);
    for (long long i = 0; i < num; ++i) {
      cout << 0 << " ";
    }
    for (long long i = num; i < n; ++i) {
      if ((rem) && ((i % 2) != (num % 2))) {
        cout << 0 << " ";
      } else {
        cout << 1 << " ";
      }
    }
    return 0;
  }
  for (long long i = 0; i < k; ++i) {
    cout << s << ' ';
  }
  long long nex = s + 1;
  if (nex == 1000000000) {
    nex -= 2;
  }
  for (long long i = k; i < n; ++i) {
    cout << nex << " ";
  }
}
