#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int n, k, s;
  cin >> n >> k >> s;
  if (k == 0) {
    for (int i = 0; i < n; ++i) cout << s + 1 << " ";
    return 0;
  }
  vector<int> result(k - 1, s);
  int m = min(n - k + 1, s);
  for (int i = 0; i < m - 1; ++i) result.push_back(s / m);
  result.push_back(s / m + s % m);
  while ((int)result.size() < n) result.push_back(s == 1 ? s + 1 : s - 1);
  for (auto it : result) cout << it << " ";
  return 0;
}
