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