#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, s;
  cin >> n >> k >> s;
  if (k == n) {
    for (int i = 0; i < n; i++) cout << s << " ";
    return 0;
  }
  vector<int> ans;
  for (int i = 1; i <= k + 1; i++) {
    if (i % 2 == 1)
      ans.push_back(2);
    else
      ans.push_back(s - 2);
  }
  for (int i = 0; i < (n - ans.size()); i++) {
    ans.push_back(s - 1);
  }
  for (int i = 0; i < ans.size(); i++) cout << ans[i] << " ";
  cout << "\n";
  return 0;
}
