#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, k, s, cnt = 1;
  vector<int> ans;
  cin >> n >> k >> s;
  if (n == 1) {
    cout << s;
    return 0;
  }
  if (k == 0) {
    for (int i = 0; i < n; ++i) cout << (s + 5) / 2 << " ";
    return 0;
  }
  if (k == n) {
    for (int i = 0; i < n; ++i) cout << s << " ";
    return 0;
  }
  ans.push_back(1);
  ans.push_back(s - 1);
  while (cnt < k) {
    if (cnt % 2)
      ans.push_back(1);
    else
      ans.push_back(s - 1);
    ++cnt;
  }
  while (ans.size() < n) ans.push_back(1e9);
  for (auto &it : ans) cout << it << " ";
  return 0;
}
