s = list(map(int, input().split()))
N = s[0]
K = s[1]
S = s[2]
t =[]
a = K//500
b = K%500
c = (N - K)//500
d = (N - K)%500
for i in range(a):
    t = t + [S]*500
for i in range(b):
    t = t + [S]
for j in range(c):
    t = t + [S + 1]*500
for j in range(d):
    t = t + [S + 1]
print(*t)