n, k, s = map(int, input().split())

if s == 1:
    a = []
    for i in range(k):
        a.append(1)
    for i in range(n-k):
        a.append(2)
    print(*a)
    exit()

if n == 1:
    if k == 1:
        a = [s]
    else:
        a = [s-1]
    print(*a)
    exit()

a = [1]

for i in range(n-1):
    if k > 0:
        a.append(s-a[-1])
        k -= 1
    elif k == 0:
        a.append(s)

print(*a)