N, K, S = map(int,input().split())
ans = []
if N == K:
    for i in range(S):
        ans.append(K)
    print(ans)
    quit()

if S % 2 == 0:
    for i in range(K+1):
        ans.append(S//2)
    for i in range(N-K-1):
        ans.append(S+1)
    print(' '.join(map(str,ans)))
else:
    for i in range((K+1)//2):
        ans.append(S//2+1)
        ans.append(S//2)
    if K % 2 == 0:
        ans.append(S//2+1)
        for j in range(N-((K+1)//2+1)-1):
            ans.append(S+1)
    else:
        for j in range(N-((K+1)//2)-1):
            ans.append(S+1)
    print(' '.join(map(str,ans)))
