#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
ostream& operator<<(ostream& s, const pair<T1, T2>& p) {
  return s << "(" << p.first << ", " << p.second << ")";
}
template <typename T>
ostream& operator<<(ostream& s, const vector<T>& v) {
  for (auto& elem : v) {
    s << elem;
    if (&elem != &v.back()) s << " ";
  }
  return s;
}
template <typename T>
ostream& operator<<(ostream& s, const vector<vector<T>>& vv) {
  for (auto& elem : vv) {
    s << elem;
    if (&elem != &vv.back()) s << endl;
  }
  return s;
}
template <typename T1, typename T2>
ostream& operator<<(ostream& s, const map<T1, T2>& m) {
  s << "{" << endl;
  for (auto& elem : m) {
    s << " " << elem.first << " : " << elem.second << endl;
  }
  s << "}";
  return s;
}
template <typename T>
ostream& operator<<(ostream& s, const set<T>& m) {
  s << "{ ";
  for (auto& elem : m) {
    s << elem << " ";
  }
  s << "}";
  return s;
}
template <class T>
bool chmax(T& a, const T& b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T& a, const T& b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
const long long dx[4] = {1, 0, -1, 0};
const long long dy[4] = {0, 1, 0, -1};
signed main() {
  long long N, K, S;
  cin >> N >> K >> S;
  srand(time(NULL));
  if (S == 1) {
    for (long long i = 0; i < (N); ++i) {
      if (i < K)
        cout << 1;
      else
        cout << rand() % 1000 + 1;
      if (i == N - 1) {
        cout << endl;
      } else {
        cout << " ";
      }
    }
  } else if (N == K) {
    if (N == 1)
      cout << S << endl;
    else {
      cout << "Error" << endl;
    }
  } else if (S % 2 == 0) {
    for (long long i = 0; i < (N); ++i) {
      if (i <= K) {
        cout << S / 2;
      } else {
        cout << rand() % 1000 + 1;
      }
      if (i == N - 1) {
        cout << endl;
      } else {
        cout << " ";
      }
    }
  } else {
    for (long long i = 0; i < (N); ++i) {
      if (i <= K) {
        if (i % 2 == 1) {
          cout << S / 2;
        } else {
          cout << S / 2 + 1;
        }
      } else {
        cout << rand() % 1000 + 1;
      }
      if (i == N - 1) {
        cout << endl;
      } else {
        cout << " ";
      }
    }
  }
  return 0;
}
