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

print((*[n for n in range(1+X-K,X+K)]))
K,X = list(map(int,input().split()))

print((*list(range(1+X-K,X+K))))
K, X = list(map(int, input().split()))
print((*[n for n in range(1 + X - K, X + K)]))

K, X = list(map(int, input().split()))
print((*list(range(1 + X - K, X + K))))

-print((*[n for n in range(1 + X - K, X + K)])) +print((*list(range(1 + X - K, X + K))))