n, k, s = map(int, input().split())
a = []
if s == 1:
    for i in range(k):
        a.append(1)
    for i in range(n - k):
        a.append(2)
elif n == k:
    for i in range(n):
        a.append(s)
else:
    for i in range((k + 1)// 2):
        a.append(1)
        a.append(s - 1)
    if k % 2 == 0:
        a.append(1)
    for i in range(n - k):
        a.append(s + 1)
for i in range(n - 1):
    print(a[i], end = " ")
print(a[n - 1])