n,k,s = map(int,input().split())
l = []
if n == k:
    l = [s]*n
    for i in range(n):
        print(a[i], end=" ")
else:
    if s%2:
        for i in range(k+1):
            print(i)
            if i%2:
                l += [int(s/2)]
            else:
                l += [int(s/2)+1]
        if s == 1 or s == 3:
            l += [100]*(n-(k+1))
        else:
            l += [1]*(n-(k+1))
    elif s != 2:
        l = [int(s/2)]*(k+1) + [int(s/2)+1]*(n-k-1)
    else:
        l = [int(s/2)]*(k+1) + [100]*(n-k-1)
        
    for i in range(n):
        print(l[i], end=" ")