#include <bits/stdc++.h>
using namespace std;
string ALP = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string alp = "abcdefghijklmnopqrstuvwxyz";
void Yes() { cout << "Yes" << endl; }
void No() { cout << "No" << endl; }
void YES() { cout << "YES" << endl; }
void NO() { cout << "NO" << endl; }
void neg() { cout << -1 << endl; }
int main() {
  long long n, k, s;
  cin >> n >> k >> s;
  if (n == k) {
    for (long long i = 0; i < n - 1; i++) {
      cout << s << " ";
    }
    cout << s << endl;
    return 0;
  }
  int a = s / 2, b = s - s / 2;
  vector<int> ans(0);
  for (int i = 0; i < (k + 1) / 2; i++) {
    ans.push_back(a);
    ans.push_back(b);
  }
  if ((k + 1) % 2 == 1) ans.push_back(a);
  for (int i = 0; i < n - k - (k + 1) % 2; i++) {
    ans.push_back(s + 1);
  }
  for (int i = 0; i < n - 1; i++) {
    cout << ans.at(i) << " ";
  }
  cout << ans.at(n - 1) << endl;
}
