n,k,s=map(int,input().split())
gu=s//2
ki=s-gu
for i in range(1,10**5):
    if s!=i+gu and s!=i+ki and s!=i+i:
        kz=i
        break
if k==0:
    print((str(kz)+" ")*n)
for i in range(n):
    if i==k+1:
        print((str(kz)+" ")*(n-k-1))
        exit()
    if i%2==0:
        print(gu,end=" ")
    elif i%2==1:
        print(ki,end=" ")