#include <bits/stdc++.h>
using namespace std;
int main() {
  bool flag = true;
  long long int n, k, s, a, b;
  cin >> n >> k >> s;
  a = 1;
  b = s - 1;
  if (k == 0) {
    for (long long int i = 0; i < n; i++) {
      cout << b << " ";
    }
  } else if (2 * k <= n) {
    for (long long int i = 0; i < k; i++) {
      if (flag) {
        cout << a << " " << b << " ";
        flag = false;
      } else {
        cout << b << " " << a << " ";
        flag = true;
      }
    }
    if (2 * k < n) {
      long long int p = n - 2 * k;
      for (long long int a = 0; a < p; a++) {
        cout << "2 ";
      }
    }
  } else {
    for (long long int i = 1; i <= k; i++) {
      cout << s << " ";
    }
    for (long long int i = 1; i <= (n - k); i++) {
      cout << "2 ";
    }
  }
  return 0;
}
