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