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