#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n, k, s, i;
  cin >> n >> k >> s;
  for (i = 0; i < k; ++i) cout << s << " ";
  for (i = 0; i < n - k; ++i) cout << (n - k) / s + 2 << " ";
}
