n,k,s = map(int,input().split())

a,b = 1,s-1
L = []
if k%2 == 0:
    i = 1
    while i <= k//2:
        L.append(a)
        L.append(b)
        i +=1
        L.append(a)
    diff = n-len(L)
    L = L + [0 for i in range(diff)]
elif k%2 == 1:
    i = 1
    while i <= (k+1)//2:
        L.append(a)
        L.append(b)
        i +=1
    #L.append(a)
    diff = n-len(L)
    L = L + [0 for i in range(diff)]
print(L)