N, K, S = map(int, input().split())

if S == 1:
    A = [2]*N
    for i in range(K):
        A[i] = 1
elif S == 10e9:
    A = [2]*N
    for i in range(K+1):
        if i % 2 == 0:
            A[i] = S - 1
        else:
            A[i] = 1
else:
    A = [10**10]*N
    for i in range(K+1):
        if i % 2 == 0:
            A[i] = S - 1
        else:
            A[i] = 1


A = [str(i) for i in A]
print(' '.join(A))
