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