K, X = list(map(int, input().split()))



low = X - K

hight = X + K



a = set()

for x in range(low + 1, hight, 1):

    a.add(x)

a = sorted(a)

a = [str(x) for x in a]

print((' '.join(a)))

K, X = list(map(int, input().split()))



low = X - K

hight = X + K



a = []

for x in range(low + 1, hight, 1):

    a.append(str(x))

print((' '.join(a)))

K, X = list(map(int, input().split()))
low = X - K
hight = X + K
a = set()
for x in range(low + 1, hight, 1):
    a.add(x)
a = sorted(a)
a = [str(x) for x in a]
print((" ".join(a)))

K, X = list(map(int, input().split()))
low = X - K
hight = X + K
a = []
for x in range(low + 1, hight, 1):
    a.append(str(x))
print((" ".join(a)))

-a = set() +a = [] -    a.add(x) -a = sorted(a) -a = [str(x) for x in a] +    a.append(str(x))