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

l = []

for i in range(s):
    if i <=  s-i:

        if i != 0:
            l.append(str(i))
        if (s-i) != 0:
            l.append(str(s-i))
    if len(l) == n:
        break

while len(l) < n:
    l.append(str(s+1))
print(' '.join(l))
