n,d,k=gets.split.map(&:to_i) t=n-k min=k*(k+1)/2 max=min+t*k if min>d||maxn p -1 else if d==min puts [*1..n]*" " elsif d==max puts [*n-k+1..n]*" " else dif=d-min puts [*1..k-(m=dif/t)-1,k-m+(dif-m*t),*n-m+1..n]*" " end end