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