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