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