import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberCount  = Integer.parseInt(numberAandB[0]);
    	int startPoint = Integer.parseInt(numberAandB[1]);
    	
    	List<Integer> result = new ArrayList();
    	result.add(startPoint);
    	for(int i = 1;i<numberCount;i++) {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	}
    	Collections.sort(result);
    	
    	String resultString = "";
    	for(int i = 0;i<result.size();i++) {
    		resultString+=result.get(i) + " ";
    	}
    	
    	
    	System.out.println(resultString.trim());
    	
    	
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberCount  = Integer.parseInt(numberAandB[0]);
    	int startPoint = Integer.parseInt(numberAandB[1]);
    	
    	List<Integer> result = new ArrayList();
    	result.add(startPoint);
    	for(int i = 1;i<numberCount;i++) {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	}
    	Collections.sort(result);
    	
    	String resultString = "";
    	for(int i = 0;i<result.size();i++) {
    		resultString+=result.get(i) + " ";
    	}
    	
    	
    	System.out.println(resultString.trim());
    	
    	
	}
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberCount  = Integer.parseInt(numberAandB[0]);
    	int startPoint = Integer.parseInt(numberAandB[1]);
    	
    	List<Integer> result = new ArrayList();
    	result.add(startPoint);
    	for(int i = 1;i<numberCount;i++) {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	}
    	Collections.sort(result);
    	
    	String resultString = "";
    	for(int i = 0;i<result.size();i++) {
    		resultString+=result.get(i) + " ";
    	}
    	
    	
    	System.out.println(resultString.trim());
    	
    	
	} main {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberCount  = Integer.parseInt(numberAandB[0]);
    	int startPoint = Integer.parseInt(numberAandB[1]);
    	
    	List<Integer> result = new ArrayList();
    	result.add(startPoint);
    	for(int i = 1;i<numberCount;i++) {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	}
    	Collections.sort(result);
    	
    	String resultString = "";
    	for(int i = 0;i<result.size();i++) {
    		resultString+=result.get(i) + " ";
    	}
    	
    	
    	System.out.println(resultString.trim());
    	
    	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] numberAandB = sc.nextLine().split(" "); numberAandB sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int numberCount  = Integer.parseInt(numberAandB[0]); numberCount Integer.parseInt(numberAandB[0]) Integer.parseInt Integer numberAandB[0] numberAandB 0 int startPoint = Integer.parseInt(numberAandB[1]); startPoint Integer.parseInt(numberAandB[1]) Integer.parseInt Integer numberAandB[1] numberAandB 1 List<Integer> result = new ArrayList(); result new ArrayList() result.add(startPoint) result.add result startPoint for(int i = 1;i<numberCount;i++) {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	} int i = 1; int i = 1; i 1 i<numberCount i numberCount i++ i++ i {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	} {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	} result.add(startPoint+i) result.add result startPoint+i startPoint i result.add(startPoint-i) result.add result startPoint-i startPoint i Collections.sort(result) Collections.sort Collections result String resultString = ""; resultString "" for(int i = 0;i<result.size();i++) {
    		resultString+=result.get(i) + " ";
    	} int i = 0; int i = 0; i 0 i<result.size() i result.size() result.size result i++ i++ i {
    		resultString+=result.get(i) + " ";
    	} {
    		resultString+=result.get(i) + " ";
    	} resultString+=result.get(i) + " " resultString result.get(i) + " " result.get(i) result.get result i " " System.out.println(resultString.trim()) System.out.println System.out System System.out resultString.trim() resultString.trim resultString String[] args args public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberCount  = Integer.parseInt(numberAandB[0]);
    	int startPoint = Integer.parseInt(numberAandB[1]);
    	
    	List<Integer> result = new ArrayList();
    	result.add(startPoint);
    	for(int i = 1;i<numberCount;i++) {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	}
    	Collections.sort(result);
    	
    	String resultString = "";
    	for(int i = 0;i<result.size();i++) {
    		resultString+=result.get(i) + " ";
    	}
    	
    	
    	System.out.println(resultString.trim());
    	
    	
	}
} public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberCount  = Integer.parseInt(numberAandB[0]);
    	int startPoint = Integer.parseInt(numberAandB[1]);
    	
    	List<Integer> result = new ArrayList();
    	result.add(startPoint);
    	for(int i = 1;i<numberCount;i++) {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	}
    	Collections.sort(result);
    	
    	String resultString = "";
    	for(int i = 0;i<result.size();i++) {
    		resultString+=result.get(i) + " ";
    	}
    	
    	
    	System.out.println(resultString.trim());
    	
    	
	}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberCount  = Integer.parseInt(numberAandB[0]);
    	int startPoint = Integer.parseInt(numberAandB[1]);
    	
    	List<Integer> result = new ArrayList();
    	result.add(startPoint);
    	for(int i = 1;i<numberCount;i++) {
    		result.add(startPoint+i);
    		result.add(startPoint-i);
    	}
    	Collections.sort(result);
    	
    	String resultString = "";
    	for(int i = 0;i<result.size();i++) {
    		resultString+=result.get(i) + " ";
    	}
    	
    	
    	System.out.println(resultString.trim());
    	
    	
	}
}