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

if S != 10e9:
    A = [S+1]*N
else:
    A = [2]*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))
