k, x = gets.split(" ").map(&:to_i)
s = x - (k - 1)
e = x + (k - 1)

if s < -1_000_000
  t = -(s + 1_000_000)
  s = s + t
  e = e + t
end

if e > 1_000_000
  t = (e - 1_000_000)
  s = s - t
  e = e - t
end

puts Range.new(s, e).to_a.join(" ")
