#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N, K, S;
  cin >> N >> K >> S;
  vector<long long> ans;
  long long a = 1;
  long long b = S - 1;
  for (long long i = 0; i < N; i++) {
    if (i <= K) {
      if (i > 0) {
        if (ans[i - 1] == a) {
          ans.push_back(b);
        } else {
          ans.push_back(a);
        }
      } else {
        ans.push_back(b);
      }
    } else {
      ans.push_back(ans[i - 1]);
    }
  }
  for (long long i = 0; i < N; i++) {
    cout << ans[i];
    if (i != N - 1) {
      cout << " ";
    } else {
      cout << endl;
    }
  }
}
