N, K, S = map(int, input().split())


if K == 0:
    if S >= 3:
        ans = [S - 1] * N
    else:
        ans = [S + 1] * N
elif N == K:
    ans = [S] * N
else:
    INF = 10 ** 9
    ans = [0] * N
    if S == 1:
        for i in range(N):
            if i < K:
                ans[i] = 1
            else:
                ans[i] = INF
    else:
        for i in range(N):
            if i <= K:
                if i % 2 == 0:
                    ans[i] = 1
                else:
                    ans[i] = S - 1
            else:
                ans[i] = INF

print(' '.join(map(str, ans)))