#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, K, S;
  cin >> N >> K >> S;
  if (K == 0) {
    int A = S + 1;
    if (A == 1000000001) A = 999999999;
    for (int i = 0; i < (N); i++) cout << A << " ";
    cout << endl;
  } else if (N == K) {
    for (int i = 0; i < (N); i++) cout << S << " ";
    cout << endl;
  } else {
    int n = 0;
    for (int i = 0; i < (K); i++) {
      cout << S << " ";
      n++;
    }
    if (N - K >= S) {
      int count = 0;
      while (n != N) {
        cout << 1 << " ";
        count++;
        n++;
        if (count == S - 1 && n < N) {
          cout << S + 1 << " ";
          n++;
          count = 0;
        }
      }
    } else {
      for (int i = 0; i < (N - K); i++) cout << 1 << " ";
    }
    cout << endl;
  }
  return 0;
}
