#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (!b) return a;
  return gcd(b, a % b);
}
long long power(long long x, long long y, long long p) {
  long long res = 1;
  x %= p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
long long po(long long base, long long powerRaised) {
  if (powerRaised != 0)
    return (base * po(base, powerRaised - 1));
  else
    return 1;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k, s;
  cin >> n >> k >> s;
  for (int i = 1; i <= k; i++) cout << s << " ";
  if (s == 1) {
    for (int i = k + 1; i <= n; i++) cout << "2 ";
    return 0;
  } else {
    long long start = 2;
    if (s == 2) start = 3;
    long long i;
    for (i = k + 1; i <= n;) {
      cout << start << " ";
      i++;
      if (i == n)
        break;
      else
        cout << s - start << " ";
      i++;
    }
  }
  cerr << "\nTime elapsed: " << 1000 * clock() / CLOCKS_PER_SEC << "ms\n";
  return 0;
}
