#include <bits/stdc++.h>
using namespace std;
template <typename T>
void read(T &t) {
  t = 0;
  char ch = getchar();
  int f = 1;
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  do {
    (t *= 10) += ch - '0';
    ch = getchar();
  } while ('0' <= ch && ch <= '9');
  t *= f;
}
const int maxn = (1e5) + 10;
int n, k, S;
long long s[maxn];
map<long long, bool> M;
int main() {
  read(n);
  read(k);
  read(S);
  for (int i = 1; i <= k; i++) printf("%d ", S);
  n -= k;
  for (int i = 1; i <= n; i++) {
    s[i] = s[i - 1] + 1;
    while (M[s[i]]) s[i]++;
    M[s[i] + S] = 1;
  }
  for (int i = 1; i <= n; i++) printf("%lld ", s[i] - s[i - 1]);
  printf("\n");
  return 0;
}
