
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int x = sc.nextInt();
		int ans[] = new int[2*k-1];
		int index=0;
		for(int i = k-1; i>0;i--) {
			ans[index]=x-i;
			index++;
		}
		for(int i = 0; i < k; i++) {
			ans[index]=x+i;
			index++;
		}
		for(int i = 0; i<ans.length;i++) {
			System.out.print(ans[i]+" ");
		}


	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int x = sc.nextInt();
		int ans[] = new int[2*k-1];
		int index=0;
		for(int i = k-1; i>0;i--) {
			ans[index]=x-i;
			index++;
		}
		for(int i = 0; i < k; i++) {
			ans[index]=x+i;
			index++;
		}
		for(int i = 0; i<ans.length;i++) {
			System.out.print(ans[i]+" ");
		}


	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int x = sc.nextInt();
		int ans[] = new int[2*k-1];
		int index=0;
		for(int i = k-1; i>0;i--) {
			ans[index]=x-i;
			index++;
		}
		for(int i = 0; i < k; i++) {
			ans[index]=x+i;
			index++;
		}
		for(int i = 0; i<ans.length;i++) {
			System.out.print(ans[i]+" ");
		}


	} main {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int x = sc.nextInt();
		int ans[] = new int[2*k-1];
		int index=0;
		for(int i = k-1; i>0;i--) {
			ans[index]=x-i;
			index++;
		}
		for(int i = 0; i < k; i++) {
			ans[index]=x+i;
			index++;
		}
		for(int i = 0; i<ans.length;i++) {
			System.out.print(ans[i]+" ");
		}


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int ans[] = new int[2*k-1]; ans new int[2*k-1] 2*k-1 2*k 2 k 1 int index=0; index 0 for(int i = k-1; i>0;i--) {
			ans[index]=x-i;
			index++;
		} int i = k-1; int i = k-1; i k-1 k 1 i>0 i 0 i-- i-- i {
			ans[index]=x-i;
			index++;
		} {
			ans[index]=x-i;
			index++;
		} ans[index]=x-i ans[index] ans index x-i x i index++ index for(int i = 0; i < k; i++) {
			ans[index]=x+i;
			index++;
		} int i = 0; int i = 0; i 0 i < k i k i++ i++ i {
			ans[index]=x+i;
			index++;
		} {
			ans[index]=x+i;
			index++;
		} ans[index]=x+i ans[index] ans index x+i x i index++ index for(int i = 0; i<ans.length;i++) {
			System.out.print(ans[i]+" ");
		} int i = 0; int i = 0; i 0 i<ans.length i ans.length ans ans.length i++ i++ i {
			System.out.print(ans[i]+" ");
		} {
			System.out.print(ans[i]+" ");
		} System.out.print(ans[i]+" ") System.out.print System.out System System.out ans[i]+" " ans[i] ans i " " String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int x = sc.nextInt();
		int ans[] = new int[2*k-1];
		int index=0;
		for(int i = k-1; i>0;i--) {
			ans[index]=x-i;
			index++;
		}
		for(int i = 0; i < k; i++) {
			ans[index]=x+i;
			index++;
		}
		for(int i = 0; i<ans.length;i++) {
			System.out.print(ans[i]+" ");
		}


	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int x = sc.nextInt();
		int ans[] = new int[2*k-1];
		int index=0;
		for(int i = k-1; i>0;i--) {
			ans[index]=x-i;
			index++;
		}
		for(int i = 0; i < k; i++) {
			ans[index]=x+i;
			index++;
		}
		for(int i = 0; i<ans.length;i++) {
			System.out.print(ans[i]+" ");
		}


	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int x = sc.nextInt();
		int ans[] = new int[2*k-1];
		int index=0;
		for(int i = k-1; i>0;i--) {
			ans[index]=x-i;
			index++;
		}
		for(int i = 0; i < k; i++) {
			ans[index]=x+i;
			index++;
		}
		for(int i = 0; i<ans.length;i++) {
			System.out.print(ans[i]+" ");
		}


	}

}