#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
long long n, k, s;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n >> k >> s;
  while (k--) cout << s << " ", n--;
  while (n--) {
    if (s == 2)
      cout << "3 ";
    else
      cout << s - 1 << " ";
  }
}
