#include <bits/stdc++.h>
using namespace std;
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-9;
int main() {
  long long N, K, S;
  cin >> N >> K >> S;
  if (N == K) {
    for (int i = 0; i < (int)(N - 1); i++) {
      cout << S << " ";
      cout << K;
    }
  } else {
    for (int i = 0; i < (int)(K - 1); i++) cout << S << " ";
    cout << S - 1 << " " << 1;
    for (int i = K + 1; i < N; i++) cout << " " << 0;
  }
  cout << endl;
}
