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

ans = []

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

    ans.append(str(i))

print((" ".join(ans)))
k, x = list(map(int, input().split()))

print((" ".join(map(str, list(range(x - k + 1, x + k))))))
k, x = list(map(int, input().split()))
ans = []
for i in range(max(x - k + 1, -1000000), min(x + k - 1, 1000000) + 1):
    ans.append(str(i))
print((" ".join(ans)))

k, x = list(map(int, input().split()))
print((" ".join(map(str, list(range(x - k + 1, x + k))))))

-ans = [] -for i in range(max(x - k + 1, -1000000), min(x + k - 1, 1000000) + 1): -    ans.append(str(i)) -print((" ".join(ans))) +print((" ".join(map(str, list(range(x - k + 1, x + k))))))