N, K, S = [int(i) for i in input().split()]

a = S//2
b = S - a

val = a
ans = []
count = 0
for i in range(N):
    if(count > K):
        val = S + 1
    else:
        count += 1
        val = val ^ a ^ b
    ans += [val]


print(*ans)
