#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int N, K, S;
  cin >> N >> K >> S;
  vector<int> A;
  int cnt = N;
  int idx = 1;
  while (cnt != 0) {
    if (idx == 1) {
      A.push_back(1);
    } else if (idx == -1) {
      A.push_back(S - 1);
    } else if (cnt) {
    }
    idx *= -1;
    cnt--;
  }
  int p = 0;
  for (int i = 1; i < A.size(); i++) {
    if (A[i - 1] + A[i] == S) {
      p++;
    }
    if (p > K) {
      A[i] = S + 1;
    }
  }
  for (int i = 0; i < A.size(); i++) {
    cout << A[i] << " ";
  }
  cout << endl;
  return 0;
}
