#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, s;
  cin >> n >> k >> s;
  vector<long long> r(n + 1, 0);
  for (long long i = 0; i < k; i++) {
    r[i] = i;
  }
  for (long long i = 0; i < n + 1; i++) {
    r[i] = r[i % k] + (i / k) * s;
  }
  vector<long long> a(n);
  for (int i = 0; i < n; i++) {
    a[i] = r[i + 1] - r[i];
  }
  for (auto e : a) {
    cout << e << " ";
  }
  cout << endl;
}
