#include <bits/stdc++.h>
 
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define ALL(v) v.begin(), v.end()
 
using namespace std;

int main()
{
  int N, K, S; cin >> N >> K >> S;
  
  
  
  REP(i, K)
    cout << S << " ";
  
  for(int i = K; i < N; i += 2)
    cout << i + 1 << " ";
    cout << S / 2 << " ";
  
}