#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t N, K, S;
  cin >> N >> K >> S;
  vector<int64_t> A(N);
  for (int64_t i = 0; i < N; i++) {
    if (i < K)
      A[i] = S;
    else if (S != 0)
      A[i] = S - 1;
    else
      A[i] = S + 1;
  }
  for (int64_t i = 0; i < N; i++) {
    cout << A[i];
    if (i != N - 1)
      cout << " ";
    else
      cout << endl;
  }
  return 0;
}
