#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, K, S;
  cin >> N >> K >> S;
  for (int n = 0; n < K; ++n) cout << S << ' ';
  for (int n = K; n < N; ++n) cout << (S == 1 ? 2 : 1) << ' ';
  cout << endl;
  return 0;
}
