a = gets.split
n1 = a[0].to_i
n2 = a[1].to_i
b = n1-1
t = n1-1

b.times do
  if n2 - t < -1000000
  else
      print n2 - t," " 
      t = t - 1
  end
end

print n2 , " "

t = 1
b.times do
  if n2 + t > 1000000
  else
      print n2 + t," " 
        t = t + 1
  end
end