#include <bits/stdc++.h>
using namespace std;
int main() {
  long long ans, n, k, s;
  cin >> n >> k >> s;
  for (int i = 0; i < n; i++) {
    if (i < k)
      cout << s;
    else {
      if ((i - k) % s != s - 1)
        cout << 1;
      else
        cout << 2;
    }
    if (i < n - 1)
      cout << " ";
    else
      cout << endl;
  }
  return 0;
}
