#include <bits/stdc++.h>
using namespace std;
long long MOD = 1000000007;
long long mod = 998244353;
int inf = 1000001000;
long long INF = 1e18 + 5;
int main() {
  int n, k, s;
  cin >> n >> k >> s;
  vector<int> a(n);
  if (k != n) {
    a[0] = 1;
    for (int(i) = 0; (i) < (k); (i)++) {
      if (i % 2 == 0)
        a[i + 1] = s - 1;
      else
        a[i + 1] = 1;
    }
    for (int(i) = 0; (i) < (n - k - 1); (i)++) {
      a[i + k + 1] = 58394782;
    }
  } else {
    for (int(i) = 0; (i) < (n); (i)++) a[i] = s;
  }
  for (int(i) = 0; (i) < (n); (i)++) {
    cout << a[i] << " ";
  }
  cout << endl;
}
