N,K,S = map(int,input().split())
arr = [0]*N
if K == 0:
    print(S)
    exit()
for i in range(K):
    arr[i] = S
if S != 2:
    for j in range(K,N):
        arr[j] = S-1
else:
    for j in range(K,N):
        arr[j] = S+1

print(*arr)
