#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
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;
}
vector<long long> a;
int main() {
  long long n, k, s;
  cin >> n >> k >> s;
  long long s1, s2;
  if (s % 2 == 0) {
    s1 = s / 2;
    s2 = s / 2;
  } else {
    s1 = s / 2;
    s2 = s / 2 + 1;
  }
  for (long long i = 0; i < k + 1; ++i) {
    if (i % 2)
      a.push_back(s1);
    else
      a.push_back(s2);
  }
  for (long long i = k + 1; i < n; ++i) {
    a.push_back(s + 1);
  }
  for (int i = 0; i < (n); ++i) {
    cout << a[i] << " ";
  }
  cout << endl;
}
