#include <bits/stdc++.h>
using namespace std;
const long long int INF = 1LL << 60;
vector<pair<long long int, long long int>> p;
bool pairCompare(const pair<double, long long int>& firstElof,
                 const pair<double, long long int>& secondElof) {
  return firstElof.first < secondElof.first;
}
long long int gcd(long long int a, long long int b) {
  if (a % b == 0)
    return (b);
  else
    return (gcd(b, a % b));
}
long long int junnretu(long long int n) {
  long long int ans = 1;
  for (long long int i = 1; i <= n; i++) {
    ans *= i;
  }
  return ans;
}
int main() {
  long long int n, k, s;
  cin >> n >> k >> s;
  cout << 1;
  for (long long int i = 1; i <= k; i++) {
    if (i % 2 == 0) {
      cout << " " << 1;
    } else {
      cout << " " << s - 1;
    }
  }
  for (long long int i = k + 1; i < n; i++) {
    cout << " " << s + 1;
  }
  cout << endl;
  return 0;
}
