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

nums = []

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

    nums.append(str(i))



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



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

    print(i,end=" ")

print("")

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

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

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