
N, K, S = map(int,input().split())
if N==K:
    print(*([S]*N))
    exit()
if N==1:
    if S!=10**9:
        print(S+1)
        exit()
    else:
        print(S-1)
        exit()
sa = N-K
val1 = S//2
val2 = S-val1
num = sa//2
res = [val1]
for i in range(K):
    if i%2==0:
        res.append(val2)
    else:
        res.append(val1)
if S != 10**9:
    if sa%2 == 1:
        res.append(S+1)
    res += [S+1]*(N-len(res))
else:
    if sa%2 == 1:
        res.append(S-1)
    res += [S-1]*(N-len(res))
print(*res)
