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