#include <bits/stdc++.h>
constexpr auto AC = 0;
using namespace std;
int aa(int a) {
  for (int i = 2;; i++) {
    if (a % i == 0) return i;
  }
}
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int s = aa(c);
  int an = c / s;
  vector<int> t(a, 1);
  if (a - b >= c) {
    int x = 0;
    int y = a;
    for (int i = 0; i < (a - b); i++) {
      if (a - 1 < x || y < 0) break;
      swap(t[x], t[y - 1]);
      x += 2;
      y -= 2;
    }
  } else
    for (int i = 0; i < (b); i++) t[i] = c;
  for (int i = 0; i < (a); i++) {
    cout << t[i];
    if (i == a - 1)
      cout << endl;
    else
      cout << " ";
  }
  return AC;
}
