#include <bits/stdc++.h>
#pragma GCC optimize("-O3")
using namespace std;
const double PI = acos(-1);
long long gcd() { return 0ll; }
template <typename T, typename... Args>
T gcd(T a, Args... args) {
  return __gcd(a, (__typeof(a))gcd(args...));
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k, m;
  cin >> n >> k >> m;
  long long a[n + 1];
  for (__typeof(k + 1) i = (0) - ((0) > (k + 1));
       i != (k + 1) - ((0) > (k + 1)); i += 1 - 2 * ((0) > (k + 1))) {
    if (i & 1)
      a[i] = 1;
    else
      a[i] = m - 1;
  }
  for (int i = k + 1; i < n; i++) a[i] = m;
  for (__typeof(n) i = (0) - ((0) > (n)); i != (n) - ((0) > (n));
       i += 1 - 2 * ((0) > (n)))
    cout << a[i] << " ";
  cout << "\n";
  return 0;
}
