#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int K;
  int S;
  cin >> N >> K >> S;
  vector<int> v(N - K + 1, 0);
  for (int i = 0; i < v.size() - 1; i++) {
    S--;
    v[i] = max(0, min(1, S));
  }
  v[N - K] = max(0, S);
  for (int i = N - K + 1; i < N; i++) {
    v.push_back(v[i - N + K - 1]);
  }
  for (int i = 0; i < N; i++) {
    cout << v[i] << " ";
  }
  cout << endl;
  return 0;
}
