n, k, s = map(int, input().split())
if s%2==0:
    A = [s//2]*(k+1)+[s//2+1]*(n-k-1)
else:
    A = [s]*n
    A[0] = s//2
    t = 0
    for i in range(1, n):
        A[i] = s-A[i-1]
        t += 1
        if t==k:
            break
print(*A)