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

ans = [1] * n
if k * 2 <= n:
    i = 0
    while k > 0:
        ans[i], ans[i+1] = 1, s-1
        k -= 1
        i += 2
else:
    if s % 2 == 0:
        i = 0
        while k > 0:
            ans[i] = ans[i+1] = s//2
            k -= 1
            i += 1
    else:
        i = 0
        while k-1 > 0:
            ans[i], ans[i+1] = 1, s-1
            k -= 1
            i += 2
        ans[i] = s
print(" ".join(map(str, ans)))