#include <bits/stdc++.h>
using namespace std;
int main() {
  long N, K, S;
  cin >> N >> K >> S;
  vector<long> A(N);
  if (N == 1) {
    cout << S;
    return 0;
  }
  if (S == 1 || S == 2) {
    long L = 0;
    long r;
    for (long i = 0; i < N; i++)
      if (i * (i + 1) / 2 <= K) {
        A[i] = S;
        L = i;
        r = K - L * (L + 1) / 2;
      }
    L++;
    for (long i = 0; i + L < N; i++) {
      if (i % 2 == 1 && r > 0) {
        A[i + L] = S;
        r--;
      } else
        A[i + L] = 3;
    }
    for (int i = 0; i < N; i++) cout << A[i] << " ";
    return 0;
  }
  for (long i = 0; i < N; i++) {
    if (i <= K) {
      if (i % 2 == 0)
        A[i] = S - 1;
      else
        A[i] = 1;
    } else
      A[i] = (S < 1000000000 ? S + 1 : 2);
  }
  for (int i = 0; i < N; i++) cout << A[i] << " ";
}
