#include <bits/stdc++.h>
using namespace std;
const long long INF = 1l << 60;
signed main() {
  long long N, K, S;
  cin >> N >> K >> S;
  vector<long long> A;
  if (K != N) {
    for (long long i = 0; i < (K + 1); ++i) {
      if (i % 2)
        A.push_back(1);
      else
        A.push_back(S - 1);
    }
    if (K != N - 1) {
      if (K % 2 == 0)
        A.push_back(S - 1);
      else
        A.push_back(1);
    }
    while (A.size() != N) {
      if (S != 1000000000)
        A.push_back(1000000000);
      else
        A.push_back(2);
    }
  } else {
    for (long long i = 0; i < (N); ++i) {
      A.push_back(S);
    }
  }
  for (long long i = 0; i < (N); ++i) {
    if (i != 0) cout << " ";
    cout << A[i];
  }
  cout << endl;
  return 0;
}
