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