import sys

N, K, S = map(int, input().split())
if N == K:
    ans = ''
    for i in range(N): ans += str(S) + ' '
    print(ans.rstrip())
    sys.exit()

ans = ''
s1, s2 = 0, 0
ex = (S + 1) % (10**9)
if S % 2 == 0:
    s1 = s2 = S // 2
else:
    s1 = S // 2
    s2 = s1 + 1
for i in range(N):
    if i % 2 == 0 and i <= K:
        ans += str(s1) + ' '
    elif i <= K:
        ans += str(s2) + ' '
    else:
        ans += str(ex) + ' '
print(ans.strip())
