from sys import stdin

n, k, s = map(int, stdin.readline().rstrip().split())
flag = 0
ans = 1
for i in range(n):
    print(ans)
    if flag < k:
        ans = s - ans
        flag += 1
    else:
        ans = s 