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 = [1]*N
    for i in range(1,N):
        if i<=K:
            ans[i] = S-ans[i-1]
        else:
            ans[i] = S+1 if S!=MAX else S-2
print(*ans)