import java.util.*;
public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[N*2-1];
		int count=0;
		for(int i=0;i<data.length;i++) {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		}
				
		
		
		for(int i=0;i<data.length;i++) {
			System.out.println(data[i]);	
		}
		
		
	}

} import java.util.*; util.* java public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[N*2-1];
		int count=0;
		for(int i=0;i<data.length;i++) {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		}
				
		
		
		for(int i=0;i<data.length;i++) {
			System.out.println(data[i]);	
		}
		
		
	}

} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[N*2-1];
		int count=0;
		for(int i=0;i<data.length;i++) {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		}
				
		
		
		for(int i=0;i<data.length;i++) {
			System.out.println(data[i]);	
		}
		
		
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[N*2-1];
		int count=0;
		for(int i=0;i<data.length;i++) {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		}
				
		
		
		for(int i=0;i<data.length;i++) {
			System.out.println(data[i]);	
		}
		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int B= sc.nextInt(); B sc.nextInt() sc.nextInt sc int data[] =new int[N*2-1]; data new int[N*2-1] N*2-1 N*2 N 2 1 int count=0; count 0 for(int i=0;i<data.length;i++) {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		} int i=0; int i=0; i 0 i<data.length i data.length data data.length i++ i++ i {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		} {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		} if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			} i<N-1 i N-1 N 1 {
				data[i]=B-N+1+i;
			} data[i]=B-N+1+i data[i] data i B-N+1+i B-N+1+i B-N B N 1 i {
			
				data[i]=B+count;
				count++;
			} data[i]=B+count data[i] data i B+count B count count++ count for(int i=0;i<data.length;i++) {
			System.out.println(data[i]);	
		} int i=0; int i=0; i 0 i<data.length i data.length data data.length i++ i++ i {
			System.out.println(data[i]);	
		} {
			System.out.println(data[i]);	
		} System.out.println(data[i]) System.out.println System.out System System.out data[i] data i String args[] args public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[N*2-1];
		int count=0;
		for(int i=0;i<data.length;i++) {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		}
				
		
		
		for(int i=0;i<data.length;i++) {
			System.out.println(data[i]);	
		}
		
		
	}

} public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[N*2-1];
		int count=0;
		for(int i=0;i<data.length;i++) {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		}
				
		
		
		for(int i=0;i<data.length;i++) {
			System.out.println(data[i]);	
		}
		
		
	}

} Main
import java.util.*;
public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[N*2-1];
		int count=0;
		for(int i=0;i<data.length;i++) {
			if(i<N-1) {
				data[i]=B-N+1+i;
			}else {
			
				data[i]=B+count;
				count++;
			}
			
		}
				
		
		
		for(int i=0;i<data.length;i++) {
			System.out.println(data[i]);	
		}
		
		
	}

}
