import sys

import os





def main():

    if os.getenv("LOCAL"):

        sys.stdin = open("input.txt", "r")



    K, X = list(map(int, sys.stdin.readline().split()))

    MAX = 1000000

    MIN = -1000000



    ret = [X]

    for i in range(1, K):

        if X + i <= MAX:

            ret.append(X+i)

        else:

            ret.append(X - K)



        if X - i >= MIN:

            ret.append(X-i)

        else:

            ret.append(X + K)



    print((*sorted(set(ret))))



if __name__ == '__main__':

    main()

import sys

import os





def main():

    if os.getenv("LOCAL"):

        sys.stdin = open("input.txt", "r")



    K, X = list(map(int, sys.stdin.readline().split()))



    ret = []

    for i in range(X-K+1, X+K):

        ret.append(i)



    print((*ret))



if __name__ == '__main__':

    main()

import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")
    K, X = list(map(int, sys.stdin.readline().split()))
    MAX = 1000000
    MIN = -1000000
    ret = [X]
    for i in range(1, K):
        if X + i <= MAX:
            ret.append(X + i)
        else:
            ret.append(X - K)
        if X - i >= MIN:
            ret.append(X - i)
        else:
            ret.append(X + K)
    print((*sorted(set(ret))))


if __name__ == "__main__":
    main()

import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")
    K, X = list(map(int, sys.stdin.readline().split()))
    ret = []
    for i in range(X - K + 1, X + K):
        ret.append(i)
    print((*ret))


if __name__ == "__main__":
    main()

-    MAX = 1000000 -    MIN = -1000000 -    ret = [X] -    for i in range(1, K): -        if X + i <= MAX: -            ret.append(X + i) -        else: -            ret.append(X - K) -        if X - i >= MIN: -            ret.append(X - i) -        else: -            ret.append(X + K) -    print((*sorted(set(ret)))) +    ret = [] +    for i in range(X - K + 1, X + K): +        ret.append(i) +    print((*ret))