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

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

print((' '.join(l)))
k,x=list(map(int,input().split()))

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

print((*l))
k, x = list(map(int, input().split()))
l = [str(i) for i in range(x - k + 1, x + k)]
print((" ".join(l)))

k, x = list(map(int, input().split()))
l = [i for i in range(x - k + 1, x + k)]
print((*l))

-l = [str(i) for i in range(x - k + 1, x + k)] -print((" ".join(l))) +l = [i for i in range(x - k + 1, x + k)] +print((*l))