n,m,k=map(int,input().split()) a=list(range(n-1)) a+=[m-sum(a)] a=a[::-1] for i in range(n-1): for j in range(i+1,n): if a[j]>a[i] and k>0: a[i],a[j]=a[j],a[i] k-=1 print(*a,sep="\n")