#include <bits/stdc++.h>
using namespace std;
const long long MAX_N = 100000000;
int main() {
  long long n, k, s;
  scanf("%lld", &n);
  scanf("%lld", &k);
  scanf("%lld", &s);
  if (n == k) {
    for (int i = 0; i < (n); i++) {
      cout << s << " ";
    }
  } else {
    for (int i = 0; i < (k + 1); i++) {
      if (i % 2 == 1) cout << 1 << " ";
      if (i % 2 == 0) cout << s - 1 << " ";
    }
    for (int i = k + 1; i < n; i++) cout << s + 1 << " ";
  }
  return 0;
}
