#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n, k, s;
  cin >> n >> k >> s;
  vector<int> ans(n);
  for (int i = 0; i < (n); ++i) {
    if ((0 < k && s != 0) || (0 < k && i == 0) ||
        (0 < k && ans.at(i - 1) != 0)) {
      ans.at(i) = s;
      k--;
    } else {
      ans.at(i) = s + 1;
    }
  }
  for (int i = 0; i < (n); ++i) {
    cout << ans.at(i);
    if (i < n - 1) cout << ' ';
  }
  cout << endl;
  return 0;
}
