n = input()    
m = n.split()
p = [int(i) for i in m]
a = []
if p[2] == 1:
    for i in range(p[0]):
        if i < p[1]:
            a.append(str(1))
        else:
            a.append(str(2))
else:
    for i in range(p[0]):
        if i <= p[1]:
            if i%2 == 0:
                a.append(str(1))
            else:
                a.append(str(p[2]-1))
        else:
            a.append(str(p[2]+1))
A = " ".join(a)
print(A)