n, k, s = map(int, input().split())
l = [0] * n
count = 1
l[0] = s
if k - 1 == 0:
    for i in range(1, n):
        l[i] = s + 1
else:
    l[1] = int(s / 2)
    for i in range(2, 2 + k - 1):
        l[i] = s - l[i - 1]
    for i in range(2 + k - 1, n):
        l[i] = s + 1
print(*l)
