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



a=list(range(-k+1,k))



for b in a:

    print(x+b,"",end="")

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



l = []

cnt = -(k-1)



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

    l.append(x+cnt)

    cnt+=1



for i in l:

    print(i,end=" ")

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

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

-k, x = map(int, input().split()) -a = list(range(-k + 1, k)) -for b in a: -    print(x + b, "", end="") +k, x = list(map(int, input().split())) +l = [] +cnt = -(k - 1) +for i in range(k + k - 1): +    l.append(x + cnt) +    cnt += 1 +for i in l: +    print(i, end=" ")