n, k, s = map(int, input().split())

a = []
if n==k:
    for _ in range(n):
        a.append(str(s))
else:
    for i in range(k+1):
        if i%2==0:
            a.append(str(1))
        else:
            a.append(str(s-1))
    for _ in range(n-k-1):
        a.append(str(s+1))

ans = ' '.join(a)
print(ans)