N,K,S=map(int,input().split())
a=N//2
b=N-a
A=[a]+[b]+[1]*(N-2)
k=0
for i in range(N-1):
    if k!=K:
        if A[i]+A[i+1]!=S:
            A[i+1]=S-A[i]
            k+=1
        else:
            k+=1
    else:
        if A[i]+A[i+1]==S:
            A[i+1]+=1
print(*A)