#include <bits/stdc++.h>
using namespace std;
const long long MAX = 510000;
const long long MOD = 1000000007;
signed main() {
  long long n, k, s;
  cin >> n >> k >> s;
  if (s == 2) {
    for (long long i = 0; i < k; i++) cout << 2 << ' ';
    for (long long i = k; i < n; i++) cout << 3 << ' ';
    return 0;
  }
  if (s == 1) {
    for (long long i = 0; i < k; i++) cout << 1 << ' ';
    for (long long i = k; i < n; i++) cout << 2 << ' ';
    return 0;
  }
  for (long long i = 0; i < k; i++) cout << s;
  long long t = k;
  while (t < n) {
    cout << s - 1 << ' ';
    t++;
    if (t < n) {
      cout << 2 << ' ';
      t++;
    }
  }
  return 0;
}
