#include <bits/stdc++.h>
using namespace std;
const long long N = 200030;
const long long mod = 1e9 + 7;
long long n, k, s;
long long arr[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k >> s;
  for (long long i = 1; i <= n; i++) {
    if (i <= k)
      arr[i] = s;
    else {
      if (i % 2)
        arr[i] = -s + 1;
      else
        arr[i] = s - 1;
    }
  }
  for (long long i = 1; i <= n; i++) cout << arr[i] << " ";
}
