#include <bits/stdc++.h>
using namespace std;
mt19937 rng(std::chrono::duration_cast<std::chrono::nanoseconds>(
                chrono::high_resolution_clock::now().time_since_epoch())
                .count());
const long long int N = 1000005;
const long long int LG = 22;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n, k, s;
  cin >> n >> k >> s;
  long long int a[n];
  for (long long int i = 0; i < k; i++) {
    a[i] = s;
  }
  long long int sum = 0;
  for (long long int i = k; i < n; i++) {
    sum++;
    if (sum == s) {
      a[i] = s + 1;
      sum = 0;
      continue;
    } else
      a[i] = 1;
  }
  for (long long int i = 0; i < n; i++) cout << a[i] << ' ';
  return 0;
}
