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

if k == 0:
    ans = [s]*n
elif s == 1:
    ans = [1]*n
else:
    if n%k == 0:
        ans = [s-1, 1]*(n//k)
    else:
        ans = [s-1, 1]*(n//k) + [s-1, 1]*(n%k)
        ans = ans[:n]

print(*ans)