n , k , s =map(int,input().split())
list=[]
if s ==2:
    for i in range(n):
        list.append(1)
    print(*list)
elif n == k:
    for i in range(n):
        list.append(s)
    print(*list)
else:
    if k %2 ==0:
        for i in range(k//2):
             list.append(1)
             list.append(s-1)
        for i in range(n-k):
             list.append(1)
    if k%2 !=0:
        for i in range(k//2+1):
             list.append(1)
             list.append(s-1)
        list.append(2)  
        if n-k-2 >0:
            for i in range(n-k-2):
                 list.append(1)
    print(*list)