#include <bits/stdc++.h>
using namespace std;
int main() {
  long int N, K, S;
  cin >> N >> K >> S;
  if (S == 1) {
    for (int i = 0; i < N; i++) {
      if (i < K)
        cout << 1 << " ";
      else
        cout << 2 << " ";
    }
  } else {
    long int n = (K * S - N - 1) / (S - 1) + 1;
    for (int i = 0; i < N; i++) {
      if (i < n)
        cout << S << " ";
      else
        cout << 1 << " ";
    }
  }
  cout << endl;
  return 0;
}
