def solve n,x=gets.split.map &:to_i if n*(n+1)/2>x then p -1 return end a=[] (1..n-1).each{|i| a.append(i) } a.append(x-a.sum) puts a.join ' ' end gets.to_i.times{ solve }