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

if K==0:
    ans=[S+1]*N
    print(' '.join(map(str,ans)))
    exit()
if S%2==0:
    ans=[S//2]*(K+1)
    for i in range(N-K-1):
        ans.append(S+1)
    print(' '.join(map(str,ans)))
elif S%2!=0:
    l=S//2
    r=S//2+1
    ans=[]
    for i in range(K+1):
        if i%2==0:
            ans.append(l)
        else:
            ans.append(r)
    for j in range(N-K-1):
        ans.append(S+1)
    print(' '.join(map(str,ans)))