#include <bits/stdc++.h>
using namespace std;
int a[1000001];
int main() {
  int n, k, s, i, j;
  cin >> n >> k >> s;
  if (n == k)
    for (i = 1; i <= n; i++) a[i] = s;
  else if (k == 0)
    for (i = 1; i <= n; i++) a[i] = s + 1;
  else if (s == 1) {
    for (i = 1; i <= k; i++) a[i] = 1;
    for (j = i; j <= n; j++) a[j] = 2;
  } else {
    k++;
    for (i = 1; i <= k; i++) {
      if (i % 2 == 1)
        a[i] = 1;
      else
        a[i] = s - 1;
    }
    int h = n - k;
    while (h) {
      a[i] = s + 1;
      h--;
      i++;
    }
  }
  for (i = 1; i <= n; i++) cout << a[i] << " ";
}
