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