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

a = S

val = a
ans = []
count = 0

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


print(*ans)
