#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<long long>;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
constexpr long long mod = 1000000007;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll n, k, s;
  cin >> n >> k >> s;
  vll a(n);
  if (k != 0) {
    for (int i = 0; i < k; i++) {
      a[i] = s;
    }
    for (int i = k; i < n; i++) {
      a[i] = 1;
    }
  } else {
    if (s == 1) {
      a[0] = 2;
    } else {
      a[0] = s - 1;
    }
    for (int i = 1; i < n; i++) {
      a[i] = 2;
    }
  }
  for (int i = 0; i < n; i++) cout << a[i] << " ";
  cout << endl;
}
