n,k,s=map(int,input().split())
if k==n:
    x=[s]*n
    print(" ".join(map(str,x)))
elif k==0:
    x=[s+1]*n
    print(" ".join(map(str,x)))
else:
    x=[s]*k
    y=[s+1]*(n-k)
    z=" ".join(map(str,x))+" "+" ".join(map(str,y))
    print(z)
