def resolve():
    n,k,s=map(int,input().split())
    k=k+1
    l=[]
    x=1
    y=s-1
    z=s+1
    for i in range(k//2):
        l.append(str(x))
        l.append(str(y))
    if k%2==1:
        l.append(str(x))
    l.append(str(z)*(n-k))
    print(*l)
resolve()