N, K, S = map(int, input().split())
ans = [min(i+1,S) for i in range(N)]
k = 0
for n in range(N):
    for r in range(n, N):
        if sum(ans[n:r+1]) == S:
            k += 1
print(k)
if k > K:
    for n in range(1,abs(k-K)+1):
        ans[-n] = S+1
if k < K:
    for n in range(1, K-k+1):
        ans[-n] = S-ans[-n-1]
for x in ans:
    print(x, end=" ")
print()
