#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll mod = 1000000007;
const ll INF = 1LL << 60;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  ll s;
  int n, k;
  cin >> n >> k >> s;
  int p = (s == 1 ? 0 : s % 2);
  for (int i = 0; i < k; i++) cout << s << ' ';
  for (int i = 0; i < n - k; i++) cout << p << ' ';
}
