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

if K==0:
    if S==1:
        ans=[2]*N
        print(*ans)
        exit()
    else:
        ans=[S-1]*N
        print(*ans)
        exit()

if S==1:
    ans=[]
    for i in range(K):
        ans.append(1)
    for i in range(N-K):
        ans.append(2)
    print(*ans)
    exit()

if N-K<S:
    ans=[]
    for i in range(K):
        ans.append(S)
    for i in range(N-K):
        ans.append(1)
    print(*ans)
elif N-K>=S:
    ans=[]
    n=(N-K)//K
    Pt=[S]
    for i in range(n):
        Pt.append(1)
    for i in range(K):
        ans.extend(Pt)
    for i in range(N-(n+1)*K):
        ans.append(1)
    print(*ans)

