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

ans=[]
if n-k<s:
    ans.append([s]*k)
    ans.append([1]*(n-k))
elif n-k>s:
    ans.append([s+1]*(n-k-s+1))
    ans.append([[1]*(s+k-1)])
else:
    ans.append([s]*k)
    ans.append([1]*(n-k-1))
    ans.append([s+1])

print(" ".join([" ".join(map(str, l)) for l in ans]))