x, y = gets.chomp.split(" ").map(&:to_i)
array = []
plus_y = y
minus_y = y
array << y

(x-1).times do
  plus_y += 1
  array << plus_y
end

(x-1).times do
  minus_y -= 1
  array << minus_y
end

array2 = array.sort

array2.each do |e|
  print e
  print " "
end

puts ""
