class Calc0115 def initialize(args) args = args.map { |l| l.chomp.split(/\s+/) } @n, @d, @k = args.shift.map(&:to_i) end def calc packed = [] d = @d @k.times do |i| h = [d - (@k - i - 1) * (@k - i) / 2, (packed.last || @n + 1) - 1].min if h < @k - i return nil end packed << h d -= h end d == 0 ? packed.reverse : nil end def run r = calc r ? r.join(' ') : -1 end end puts Calc0115.new(STDIN.readlines).run if __FILE__ == $0