#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  int a[n];
  a[0] = 1;
  for (int i = 1; i < n; ++i) a[i] = k - a[i - 1];
  int d = n - 1 - m;
  for (int i = 0; i < d; ++i) a[i] += k;
  for (int i = 0; i < n; ++i) cout << a[i] << ' ';
  return 0;
}
