#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long MOD = 1e9 + 7;
const int INF = 1 << 30;
int main() {
  long long N, K, S;
  cin >> N >> K >> S;
  if (N == K) {
    for (int i = 0; i < (int)(N); i++) {
      if (i == N - 1) {
        cout << S << endl;
        continue;
      }
      cout << S << " ";
    }
    return 0;
  }
  for (int i = 0; i < (int)(N); i++) {
    if (i > K) {
      if (i == N - 1) {
        cout << S + 1 << endl;
        continue;
      }
      cout << S + 1 << " ";
      continue;
    }
    if (i % 2 == 0) {
      if (i == N - 1) {
        cout << 1 << endl;
        continue;
      }
      cout << 1 << " ";
    } else {
      if (i == N - 1) {
        cout << S - 1 << endl;
        continue;
      }
      cout << S - 1 << " ";
    }
  }
}
