n, d, k = gets.split.map(&:to_i) a = Array.new(k) sum = 0 k.times do |i| a[i] = i + 1 sum += i + 1 end if sum > d puts -1 exit end (k - 1).downto(0) do |i| diff = d - sum u = a[i] + diff if u <= n sum += diff a[i] = u break else sum += n - a[i] a[i] = n n -= 1 end end if sum == d puts a.join(" ") else puts -1 end