#include <bits/stdc++.h>
using namespace std;
int a[1000001];
int main() {
  int n, k, s, i;
  cin >> n >> k >> s;
  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] << " ";
}
