n,k,s=map(int,input().split())
if n==k:
    for i in range(n):
        print(s,end=" ")
else:
    li=[]
    for j in range((k+1)//2):
        li.append(1)
        li.append(s-1)
    if k%2==0:
      li.append(1)
    for j in range(n-len(li)):
        li.append(s+1)
    for j in li:
        print(j,end=" ")
        
    