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