#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const int INF = 1e9;
int main() {
  int N, K, S;
  cin >> N >> K >> S;
  vector<int> ans(N, INF);
  if (S == 1) {
    for (ll i = 0; i < K; i++) ans[i] = S;
  } else if (S % 2 == 0) {
    if (N == K)
      for (ll i = 0; i < N; i++) ans[i] = S;
    else {
      for (ll i = 0; i < K + 1; i++) ans[i] = S / 2;
    }
  } else {
    if (N == K)
      for (ll i = 0; i < N; i++) ans[i] = S;
    else {
      for (ll i = 0; i < K + 1; i++) {
        if (i % 2 == 0)
          ans[i] = 1;
        else
          ans[i] = S - 1;
      }
    }
  }
  for (ll i = 0; i < N; i++) {
    cout << ans[i];
    if (i != N - 1) cout << " ";
  }
  cout << endl;
  return 0;
}
