#include <bits/stdc++.h>
using namespace std;
void popcnt(int a, vector<int>& ones, vector<int>& zero_pos) {
  for (int i = 0; i < sizeof(int) * 8; ++i) {
    if (a & 0x1 == 1) {
      ones.push_back(1 << i);
    } else {
      zero_pos.push_back(i);
    }
    a >>= 1;
  }
}
int main() {
  int n, k, s;
  cin >> n >> k >> s;
  vector<int> items;
  vector<int> zero_pos;
  popcnt(s, items, zero_pos);
  int res[k];
  auto cnt = items.size();
  int i;
  for (i = 0; i < cnt; ++i) {
    res[i] = items[i];
  }
  for (i = 0; i < cnt; ++i) {
    cout << res[i] << " ";
  }
  int rem = k - 2;
  int j = i;
  --i;
  while (rem > 0) {
    res[j] = s - res[i];
    --rem;
    cout << res[j] << " ";
    ++j;
    ++cnt;
    if (rem == 0) break;
    res[j] = res[i];
    --rem;
    cout << res[j] << " ";
    ++j;
    ++cnt;
    --i;
  }
  res[j] = s;
  cout << s << " ";
  const int non_overlap = 1 << zero_pos[0];
  ++cnt;
  while (cnt != n) {
    cout << non_overlap << " ";
    ++cnt;
  }
  cout << endl;
  return 0;
}
