n, k, s = map(int, input().split())
s_len = n - k + 1
first = s - (s_len - 1)
result = []

if k == 0:
    if not s == pow(10, 9):
        for _ in range(n):
            result.append(s+1)
    else:
        for _ in range(n):
            result.append(1)

else:
    result.append(first)
    for i in range(1, s_len):
        result.append(1)
    for i in range(s_len, n):
        result.append(result[i-s_len])

print(' '.join(map(str, result)))