N,K,S = map(int,input().split())
ans = []
for _ in range(K):
    ans.append(S)

if K < N:
    if S==1:
        ans.append(2)
    else:
        ans.append(1)

for _ in range(N-K-1):
    if S == 1:
        ans.append(3)
    if S == 0:
        ans.append(5)
    else:
        ans.append(0)
print(*ans)