#include <bits/stdc++.h>
using namespace std;
const long long LINF = 1e18;
const int INF = 1e9;
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;
}
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long n, k, s;
  cin >> n >> k >> s;
  if (n == k) {
    for (int i = 0; i < n - 1; i++) {
      cout << s << " ";
    }
    cout << s << endl;
  } else {
    for (int i = 0; i < k; i++) {
      cout << s << " ";
    }
    if (s == 1)
      cout << 2;
    else
      cout << 1;
    for (int i = k + 1; i < n; i++) {
      cout << " " << 0;
    }
    cout << endl;
  }
  return 0;
}
