n,d,k=gets.split.map(&:to_i) summin=k*(k+1)/2 summax=summin+(n-k)*k if summin>d||summaxn p -1 else if d==summin puts [*1..n]*" " elsif d==summax puts [*n-k..n]*" " else diff=d-summin puts [*1..k-(m=diff/(n-k))-1,k-m+(diff-m*(n-k)),*(k-m+1..k).map{|i|i+n-k}]*" " end end