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

def gcd(a, b):
    while b:
        a, b = b, a % b
    return a

for i in range(S + 1, 10**6):
    if gcd(S, i) == 1:
        p = gcd(S, i)
        break

ans = []
ans.extend([S for _ in range(K)])
ans.extend([p for _ in range(N-K)])
print(ans)