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

if s != 10**9 or k==n

    for i in range(k):
        a.append(s)

    for j in range(k,n):
        a.append(s+1)

    b=map(str,a)

    print(" ".join(b))

else:
    for i in range(k):
        a.append(s)
    a.append(1)
    for j in range(k+1,n):
        a.append(0)

    b=map(str,a)

    print(" ".join(b))