#include <bits/stdc++.h>
using namespace std;
constexpr long long mod = 1000000007;
int main() {
  int n, k, s;
  cin >> n >> k >> s;
  if (k == n) {
    for (int i = 0; i < n; i++) cout << s << " ";
  } else {
    for (int i = 0; i <= k; i++) cout << s / 2 + (s % 2) * (i % 2) << " ";
    for (int i = 0; i < (n - k - 1); i++) cout << (s < 2 ? 3 : s - 1) << " ";
  }
}
