n, k, s = map(int, input().split())

la = list()

if s == 1:
    l = [1] * k + [2] * (n-k)
    l = [str(i) for i in l]
    print(" ".join(l))

elif s == 10**9:
    l = [s] * k + [1] * (n-k)
    l = [str(i) for i in l]
    print(" ".join(l))
    
else:
    for i in range(n):
        la.extend([1, s-1])
    l = la[:k+1]
    for i in range(n-k-1):
        l.append(s+1)

    l = [str(i) for i in l]
    print(" ".join(l))