#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pint = pair<int, int>;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long ctoi(char c) { return c - '0'; }
signed main(void) {
  long long n, k, s;
  cin >> n >> k >> s;
  if (n == k) {
    for (long long(i) = 0, temp = (long long)(n); (i) < temp; ++(i))
      cout << s << " ";
    cout << endl;
    return 0;
  }
  long long o = s + 1;
  if (s == 1000000000) o = s - 1;
  if (s % 2 == 0) {
    for (long long(i) = 0, temp = (long long)(n); (i) < temp; ++(i)) {
      if (i <= k)
        cout << s / 2 << " ";
      else
        cout << o << " ";
    }
    cout << endl;
    return 0;
  }
  long long h = s / 2;
  for (long long(i) = 0, temp = (long long)(n); (i) < temp; ++(i)) {
    if (i <= k)
      cout << h + (i % 2) << " ";
    else
      cout << o << " ";
  }
  cout << endl;
}
