input = raw_input

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

if s == 10**9:
    M = 1
else:
    M = s + 1

if s % 2 == 0:
    a1 = s // 2
    a2 = a1
else:
    a1 = s // 2
    a2 = a1 + 1

if k == n:
    for i in range(n-1):
        print s,
    print s
else:
    for i in range(k):
        print s,
    for i in range(n-k-1):
        print M,
    print M
