N, K, S = map(int, input().split())
if K == N:
    print(*([S] * N), sep = ' ')
else:
    half1 = S // 2
    half2 = S - half1
    ans = [half1, half2] * (K // 2)
    ans += [half1]
    if K % 2:
        ans += [half2]
    rem = 1 if S == 10 ** 9 else 10 ** 9
    ans += [rem] * (N - len(ans))

    print(*ans, sep = ' ')