N, K, S = map(int, input().split())
INF = 10 ** 9


if N == K:
    print(*[S] * N)
elif K == 1:
    if S == INF:
        const = 1
    else:
        const = INF
    ans = [S]
    for i in range(N-1):
        ans.append(const)
    print(*ans)
elif S == 1:
    ans = []
    for i in range(N):
        if i < K:
            ans.append(1)
        else:
            ans.append(INF)
    print(*ans)
else:
    ans = []
    for i in range(K+1):
        if i % 2 == 0:
            ans.append(1)
        else:
            ans.append(S - 1)
    for i in range(K+1, N):
        ans.append(INF)
    print(*ans)
