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