#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, K, S;
  cin >> N >> K >> S;
  vector<int> res(N);
  if (K == N) {
    for (int(i) = 0; (i) < (int)(N); ++(i)) {
      res[i] = S;
    }
  } else {
    for (int(i) = 0; (i) < (int)(K + 1); ++(i)) {
      if ((!((((i)) & 0x01UL) == 0x01UL))) {
        res[i] = 1;
      } else {
        res[i] = S - 1;
      }
    }
    for (int(i) = K + 1; (i) < (int)(N); ++(i)) {
      if ((!((((i)) & 0x01UL) == 0x01UL))) {
        res[i] = 2;
      } else {
        res[i] = S;
      }
    }
  }
  for (int(i) = 0; (i) < (int)(N); ++(i)) {
    cout << res[i] << " ";
  }
  cout << endl;
  return 0;
}
