k,x=list(map(int,input().split()))



right= (1000000)*(-1)

left=1000000

al=[]

for i in range(x-(k-1),x+1):

  if i<right or left<i:

    continue

  for j in range(k):

    t=i+j

    if (i+j in al)!=True and (t<right)==False and (left <t)==False:

      al.append(i+j)

  



al.sort()

print((*al))







#n=int(input())

k,x=map(int,input().split())

#l=list(map(int,input().split()))

#l=[list(map(int,input().split())) for i in range(n)]



l=[i for i in range(max(x-k+1,-1000000),min(x+k-1,1000000)+1)]



print(*l,sep=" ")

k, x = list(map(int, input().split()))
right = (1000000) * (-1)
left = 1000000
al = []
for i in range(x - (k - 1), x + 1):
    if i < right or left < i:
        continue
    for j in range(k):
        t = i + j
        if (i + j in al) != True and (t < right) == False and (left < t) == False:
            al.append(i + j)
al.sort()
print((*al))

# n=int(input())
k, x = map(int, input().split())
# l=list(map(int,input().split()))
# l=[list(map(int,input().split())) for i in range(n)]
l = [i for i in range(max(x - k + 1, -1000000), min(x + k - 1, 1000000) + 1)]
print(*l, sep=" ")

-k, x = list(map(int, input().split())) -right = (1000000) * (-1) -left = 1000000 -al = [] -for i in range(x - (k - 1), x + 1): -    if i < right or left < i: -        continue -    for j in range(k): -        t = i + j -        if (i + j in al) != True and (t < right) == False and (left < t) == False: -            al.append(i + j) -al.sort() -print((*al)) +# n=int(input()) +k, x = map(int, input().split()) +# l=list(map(int,input().split())) +# l=[list(map(int,input().split())) for i in range(n)] +l = [i for i in range(max(x - k + 1, -1000000), min(x + k - 1, 1000000) + 1)] +print(*l, sep=" ")