#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, s;
  cin >> n >> k >> s;
  if (n == 1) {
    if (k == 0) {
      if (s == 2) {
        cout << 1;
      } else {
        cout << 2;
      }
    } else {
      cout << s;
    }
  } else if (k == 1) {
    cout << s;
    for (long long i = 0; i < (long long)(n - 1); i++) {
      if (s == 2) {
        cout << " " << 1;
      } else {
        cout << " " << 2;
      }
    }
  } else if (k == 0) {
    for (long long i = 0; i < (long long)(n); i++) {
      if (i == 0) {
        if (s == 2) {
          cout << 1;
        } else {
          cout << 2;
        }
      } else {
        if (s == 2) {
          cout << " " << 1;
        } else {
          cout << " " << 2;
        }
      }
    }
  } else {
    for (long long i = 1; i <= (long long)(n); i++) {
      if (i <= k + 1) {
        if (i % 2 == 1) {
          if (i == 1) {
            cout << s - 1;
          } else {
            cout << " " << s - 1;
          }
        } else {
          cout << " " << 1;
        }
      } else {
        cout.precision(0);
        cout << fixed << " " << 1e9;
      }
    }
  }
  cout << endl;
  return 0;
}
