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

ans = []
if S % 2 == 0:
    for i in range(K):
        ans.append(S)
    for i in range(N-K):
        ans.append(S+1)

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

