line = gets.split(' ').map(&:to_i)

K = line[0]
X = line[1]

xmax = 10 ** 6
xmin = - 10 ** 6

ans = [X]
for i in 1..K-1 do
  if xmin < X + i and X + i < xmax then
    ans.push(X + i)
  end
  if xmin < X + i and X + i < xmax then
    ans.push(X - i)
  end
end

ans = ans.sort
    
for i in 1..ans.length do
  print ans[i-1].to_s + " "
end