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

a = [s+1] * n
cnt = -1
if s % 2 == 0:
    for i in range(n):
        a[i] = s // 2
        cnt += 1
        if cnt == k:
            break
else:
    for i in range(n):
        if i % 2 == 0:
            a[i] = s // 2
        else:
            a[i] = s // 2 + 1
        cnt += 1
        if cnt == k:
            break

if n == k:
    a = [s] * n

print(" ".join(map(str, a)))