#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, s, count = 0;
  cin >> n >> k >> s;
  vector<long long> ans;
  if (n != k) {
    while (count <= k) {
      if (count % 2 == 0) {
        ans.push_back(1);
      } else {
        ans.push_back(s - 1);
      }
      count++;
    }
    while (count > k && count < n) {
      ans.push_back(s + 2);
      count++;
    }
  } else {
    while (count < n) {
      ans.push_back(s);
      count++;
    }
  }
  for (int i = 0; i < (int)n; i++) cout << ans.at(i) << " ";
}
