N, K, S = map(int, input().split())

ans = ""
cnt = 0
for i in range(N):
  if cnt < K:
    ans += str(S) + " "
    cnt += 1
  else:
    if i == N-1:
      ans += str(max(S-1,0))
    else:
      ans += str(max(S-1,0)) + " "
    
print(ans)