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

a = [s+1] * n
cnt = 0
for i in range(n):
    if i % 2 == 0:
        cnt += 1
        a[i] = cnt
    else:
        a[i] = s - cnt
        if cnt == k:
            break
if k % 2 == 0:
    print(" ".join(map(str, a)))
else:
    a[n-1] = s
    print(" ".join(map(str, a)))