N, K, S = map(int, input().split())
if N == K:
  print(' '.join([str(S)]*N))
else:
  L = S // 2
  R = S - L
  ans = ''
  for i in range(K+1):
    if i & 1:
      ans += str(R) + ' '
    else:
      ans += str(L) + ' '
  for i in range(N-K-1):
    ans += str((S+1) % int(1e9)) + ' '
  print(ans)