#include <bits/stdc++.h>
using namespace std;
using vi = vector<long long>;
using pii = pair<long long, long long>;
using ll = long long;
bool chmin(long long& a, long long b) { return a > b ? (a = b, true) : false; }
bool chmax(long long& a, long long b) { return a < b ? (a = b, true) : false; }
constexpr long long TEN(long long n) { return n == 0 ? 1 : 10 * TEN(n - 1); }
const long long inf = TEN(9) + 10;
const long long mod = TEN(9) + 7;
signed main() {
  long long N, K, S;
  cin >> N >> K >> S;
  for (long long i = 0; i < (long long)(K); ++i) printf("%lld ", S);
  for (long long i = 0; i < (long long)(N - K); ++i)
    printf("%d ", S == 1 ? 2 : 1);
  puts("");
}
