import java.util.Scanner;

public class Main {
	public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		
		int K = sc.nextInt();
		int X = sc.nextInt();
		
		for(int i = K-1; i>0 ; i--) {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		}
		
		System.out.print(X + " ");
		
		for(int i = 1; i < K ; i++) {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (i) + " ");
		}
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		
		int K = sc.nextInt();
		int X = sc.nextInt();
		
		for(int i = K-1; i>0 ; i--) {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		}
		
		System.out.print(X + " ");
		
		for(int i = 1; i < K ; i++) {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (i) + " ");
		}
		
	}
} Main public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		
		int K = sc.nextInt();
		int X = sc.nextInt();
		
		for(int i = K-1; i>0 ; i--) {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		}
		
		System.out.print(X + " ");
		
		for(int i = 1; i < K ; i++) {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (i) + " ");
		}
		
	} main {
		Scanner sc = new Scanner(System.in);
		
		int K = sc.nextInt();
		int X = sc.nextInt();
		
		for(int i = K-1; i>0 ; i--) {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		}
		
		System.out.print(X + " ");
		
		for(int i = 1; i < K ; i++) {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (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 for(int i = K-1; i>0 ; i--) {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		} int i = K-1; int i = K-1; i K-1 K 1 i>0 i 0 i-- i-- i {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		} {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		} if(X-(i) < -1000000) {
				continue;
			} X-(i) < -1000000 X-(i) X (i) -1000000 1000000 {
				continue;
			} continue; System.out.print(X - (i) + " ") System.out.print System.out System System.out X - (i) + " " X - (i) X (i) " " System.out.print(X + " ") System.out.print System.out System System.out X + " " X " " for(int i = 1; i < K ; i++) {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (i) + " ");
		} int i = 1; int i = 1; i 1 i < K i K i++ i++ i {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (i) + " ");
		} {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (i) + " ");
		} if(X-(i) > 1000000) {
				continue;
			} X-(i) > 1000000 X-(i) X (i) 1000000 {
				continue;
			} continue; System.out.print(X + (i) + " ") System.out.print System.out System System.out X + (i) + " " X + (i) + " " X (i) " " String arg[] arg public class Main {
	public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		
		int K = sc.nextInt();
		int X = sc.nextInt();
		
		for(int i = K-1; i>0 ; i--) {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		}
		
		System.out.print(X + " ");
		
		for(int i = 1; i < K ; i++) {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (i) + " ");
		}
		
	}
} public class Main {
	public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		
		int K = sc.nextInt();
		int X = sc.nextInt();
		
		for(int i = K-1; i>0 ; i--) {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		}
		
		System.out.print(X + " ");
		
		for(int i = 1; i < K ; i++) {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (i) + " ");
		}
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String arg[]) {
		Scanner sc = new Scanner(System.in);
		
		int K = sc.nextInt();
		int X = sc.nextInt();
		
		for(int i = K-1; i>0 ; i--) {
			if(X-(i) < -1000000) {
				continue;
			}
			System.out.print(X - (i) + " ");
		}
		
		System.out.print(X + " ");
		
		for(int i = 1; i < K ; i++) {
			if(X-(i) > 1000000) {
				continue;
			}
			System.out.print(X + (i) + " ");
		}
		
	}
}