N, K, S = map(int,input().split())
A = []

if S == 1:
    A.extend([1] * K)
    A.extend([2] * (N - K))
else:
    for i in range((K + 1) // 2):
        A.extend([1, S - 1])
    if N % 2 == 0:
        A.append(1)
    x = S + 1 if S != 10 ** 9 else S - 2
    A.extend([x] * (N - K - 1))

for Ai in A:
        print(Ai, end = " ")