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