n,k,s = map(int,input().split())
ans = []
if s != 10**9:
    if s%2 == 0:
        x = s//2
        if 0< k < n:
            for i in range(k+1):
                ans.append(x)
            for i in range(n-k-1):
                ans.append(10**9)
        elif k == 0:
            for i in range(n):
                ans.append(10**9)
        else:
            for i in range(n):
                ans.append(s)
    else:
        x = s//2
        y = s-x
        if 0 < k < n:
            for i in range(k+1):
                if i %2 == 0:
                    ans.append(x)
                else:
                    ans.append(y)
            for i in range(n-k-1):
                ans.append(10**9)
        elif k == 0:
            for i in range(n):
                ans.append(10**9)
        else:
            ans.append(s)

else:
    if 0 < k < n:
        for i in range(k):
            ans.append(s)
        for i in range(n-k):
            ans.append(1)
    elif k == 0:
        for i in range(n):
            ans.append(1)
    else:
        for i in range(n):
            ans.append(s)
            
print(" ".join(map(str,ans)))
