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

L = [1,s-1]
li = []

if s < 10**9:
    if k%2 == 1:
        li = L*(k//2+1)
    else:
        li = L*(k//2) + [1]

    li = li + [s+1] *(n-len(li))
    print(*li)
    exit()
elif s == 10**9:
    li = [s]*k + [1]*(n-k)
    print(*li)