N,K,S = map(int,input().split())
MAX = 10**9
if K==N:
    ans = [S]*N
elif K==0:
    if S==MAX:
        ans = [S-1]*N
    else:
        ans = [S+1]*N
else:
    ans = [S]*K+[min(2,S-1)]*(N-K)
print(*ans)