def multi_int_input():
    return map(int, input().split())

N, K, S = multi_int_input()

base_list = [S]*N
if K == 1:
    base_list = list(map(str, base_list))
else:
    for k in range(0, K, 2):
        tmp = S - (k+1)
        base_list[k] = tmp
        base_list[k+1] = k+1
             
base_list = list(map(str, base_list))
print(" ".join(base_list))