#include <bits/stdc++.h>
using namespace std;
template <typename T>
using V = vector<T>;
using VL = V<long long>;
using VVL = V<VL>;
template <typename T, typename U>
using P = pair<T, U>;
using PL = P<long long, long long>;
using VPL = V<PL>;
template <typename T>
inline bool chmax(T& a, T b);
template <typename T>
inline bool chmin(T& a, T b);
void print_ints(vector<long long> v);
template <typename T>
void drop(T a);
const long long INF = 1e18;
void solve() {
  long long N, K, S;
  cin >> N >> K >> S;
  VL res(N);
  for (long long i = 0; i < (K); ++i) res[i] = S;
  for (long long i = K; i < (N); ++i) res[i] = S == 1 ? 2 : 1;
  print_ints(res);
}
struct exit_exception : public std::exception {
  const char* what() const throw() { return "Exited"; }
};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  try {
    solve();
  } catch (exit_exception& e) {
  }
  return 0;
}
template <typename T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
void print_ints(vector<long long> v) {
  for (long long i = 0; i < (v.size()); ++i) {
    if (i > 0) {
      cout << " ";
    }
    cout << v[i];
  }
  cout << endl;
}
template <typename T>
void drop(T res) {
  cout << res << endl;
  throw exit_exception();
}
