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



ans=list(range(x-k+1,x+k))

print((*ans))
k,x = map(int, input().split())

for i in range(k):

  print(x-k+i+1,end=" ")

for i in range(1,k):

  print(x+i,end=" ")

k, x = list(map(int, input().split()))
ans = list(range(x - k + 1, x + k))
print((*ans))

k, x = map(int, input().split())
for i in range(k):
    print(x - k + i + 1, end=" ")
for i in range(1, k):
    print(x + i, end=" ")

-k, x = list(map(int, input().split())) -ans = list(range(x - k + 1, x + k)) -print((*ans)) +k, x = map(int, input().split()) +for i in range(k): +    print(x - k + i + 1, end=" ") +for i in range(1, k): +    print(x + i, end=" ")