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