#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, k, s;
  cin >> n >> k >> s;
  if (k == n) {
    for (long long i = 0; i < n; i++) cout << s << " ";
  } else {
    long long cnt = 0;
    while (cnt <= k) {
      if (cnt % 2 == 0)
        cout << 1 << " ";
      else
        cout << s - 1 << " ";
      cnt++;
    }
    for (long long i = cnt; i < n; i++) cout << s + 1 << " ";
  }
}
