#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, i, j = 0, k, sum = 0, a;
  cin >> m;
  cin >> n;
  cin >> k;
  for (i = 1; i <= m; i++) {
    if (n != 0) {
      cout << k << " ";
      n--;
    } else {
      if (k == 2) {
        cout << 3 << " ";
      } else {
        cout << 1 << " ";
      }
    }
  }
}
