#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t n, k, s;
  cin >> n >> k >> s;
  vector<int> a(n);
  for (int i = 0; i < k + 1; i++) {
    if (i % 2 == 0)
      cout << 1 << " ";
    else
      cout << s - 1 << " ";
  }
  for (int i = 0; i < n - k - 2; i++) {
    cout << s + 1 << " ";
  }
  cout << s + 1 << endl;
}
