import sys



def solve(k, x):

  min_x = max(-1000000, x - k + 1)

  max_x = min(x + k - 1, 1000000)

  ans = [i for i in range(min_x, max_x + 1)]

  print(" ".join(map(str,ans)))





if __name__ == '__main__':



  k, x = list(map(int, sys.stdin.readline().strip().split(" ")))

  solve(k, x)
import sys



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



left = max(-1000000, X - K + 1)

right = min(1000000, X + K - 1)

# print(left, right)

ans = [i for i in range(left, right+1)]

print((*ans))
import sys


def solve(k, x):
    min_x = max(-1000000, x - k + 1)
    max_x = min(x + k - 1, 1000000)
    ans = [i for i in range(min_x, max_x + 1)]
    print(" ".join(map(str, ans)))


if __name__ == "__main__":
    k, x = list(map(int, sys.stdin.readline().strip().split(" ")))
    solve(k, x)

import sys

K, X = list(map(int, sys.stdin.readline().split()))
left = max(-1000000, X - K + 1)
right = min(1000000, X + K - 1)
# print(left, right)
ans = [i for i in range(left, right + 1)]
print((*ans))

- -def solve(k, x): -    min_x = max(-1000000, x - k + 1) -    max_x = min(x + k - 1, 1000000) -    ans = [i for i in range(min_x, max_x + 1)] -    print(" ".join(map(str, ans))) - - -if __name__ == "__main__": -    k, x = list(map(int, sys.stdin.readline().strip().split(" "))) -    solve(k, x) +K, X = list(map(int, sys.stdin.readline().split())) +left = max(-1000000, X - K + 1) +right = min(1000000, X + K - 1) +# print(left, right) +ans = [i for i in range(left, right + 1)] +print((*ans))