#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N, K, S;
  cin >> N >> K >> S;
  int count = 0;
  int index = 0;
  long long abo = K - (N / 2);
  long long val = 1;
  if (N == K) {
    for (int i = 0; i < N; i++) {
      cout << S << " ";
    }
    return 0;
  } else {
    for (int i = 0; i < (N / 2); i++) {
      if (abo < i) val++;
      long long be = S - (S - (val));
      long long af = S - be;
      count++;
      if (count <= K) {
        cout << be << " " << af << " ";
        index += 2;
      }
    }
  }
  for (int i = index; i < N; i++) {
    if (N % 2 != 0 && i == index && N - K == 1) {
      cout << S << " ";
      continue;
    }
    long long t = S - 1;
    cout << t << " ";
  }
}
