#include <bits/stdc++.h>
using namespace std;
const int N = 100001;
int n, k, s;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> k >> s;
  set<int> valid;
  for (int i = 0; i < N; i++) {
    valid.insert(i);
  }
  int cur = 0;
  valid.erase(s - cur);
  for (int i = 0; i < k; i++) {
    cur += s;
    valid.erase(s - cur);
    cout << s << " ";
  }
  for (int i = 0; i < n - k; i++) {
    int x = *valid.begin();
    cur += x;
    valid.erase(s - cur);
    cout << x << " ";
  }
  cout << endl;
}
