n,k,s = map(int, input().split())
a = list()
check = True
x = s - 1
y = s + 1
fin = 0
for i in range(n):
    if fin <= k:
        if check == True:
            check = False
            a.append(x)
        else:
            check = True
            a.append(1)
        fin += 1
    else:
        a.append(s+1)
print(*a)