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 A[] = new int[100];
		int B[] = new int[100];
		int p_cnt = X+1;
		int m_cnt = X-1;

		for(int i=0;i<K-1;i++) {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		}
		

		for(int j=K-2;j>=0;j--) System.out.print(B[j]+" ");
		System.out.print(X+" ");
		for(int k=0;k<(K-1);k++) System.out.print(A[k]+" ");



	}
} 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 A[] = new int[100];
		int B[] = new int[100];
		int p_cnt = X+1;
		int m_cnt = X-1;

		for(int i=0;i<K-1;i++) {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		}
		

		for(int j=K-2;j>=0;j--) System.out.print(B[j]+" ");
		System.out.print(X+" ");
		for(int k=0;k<(K-1);k++) System.out.print(A[k]+" ");



	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int K = sc.nextInt();
		int X = sc.nextInt();
		int A[] = new int[100];
		int B[] = new int[100];
		int p_cnt = X+1;
		int m_cnt = X-1;

		for(int i=0;i<K-1;i++) {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		}
		

		for(int j=K-2;j>=0;j--) System.out.print(B[j]+" ");
		System.out.print(X+" ");
		for(int k=0;k<(K-1);k++) System.out.print(A[k]+" ");



	} main {
		Scanner sc = new Scanner(System.in);

		int K = sc.nextInt();
		int X = sc.nextInt();
		int A[] = new int[100];
		int B[] = new int[100];
		int p_cnt = X+1;
		int m_cnt = X-1;

		for(int i=0;i<K-1;i++) {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		}
		

		for(int j=K-2;j>=0;j--) System.out.print(B[j]+" ");
		System.out.print(X+" ");
		for(int k=0;k<(K-1);k++) System.out.print(A[k]+" ");



	} 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 A[] = new int[100]; A new int[100] 100 int B[] = new int[100]; B new int[100] 100 int p_cnt = X+1; p_cnt X+1 X 1 int m_cnt = X-1; m_cnt X-1 X 1 for(int i=0;i<K-1;i++) {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		} int i=0; int i=0; i 0 i<K-1 i K-1 K 1 i++ i++ i {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		} {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		} A[i] = p_cnt++ A[i] A i p_cnt++ p_cnt B[i] = m_cnt-- B[i] B i m_cnt-- m_cnt for(int j=K-2;j>=0;j--) System.out.print(B[j]+" "); int j=K-2; int j=K-2; j K-2 K 2 j>=0 j 0 j-- j-- j System.out.print(B[j]+" "); System.out.print(B[j]+" ") System.out.print System.out System System.out B[j]+" " B[j] B j " " System.out.print(X+" ") System.out.print System.out System System.out X+" " X " " for(int k=0;k<(K-1);k++) System.out.print(A[k]+" "); int k=0; int k=0; k 0 k<(K-1) k (K-1) K 1 k++ k++ k System.out.print(A[k]+" "); System.out.print(A[k]+" ") System.out.print System.out System System.out A[k]+" " A[k] A k " " 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 A[] = new int[100];
		int B[] = new int[100];
		int p_cnt = X+1;
		int m_cnt = X-1;

		for(int i=0;i<K-1;i++) {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		}
		

		for(int j=K-2;j>=0;j--) System.out.print(B[j]+" ");
		System.out.print(X+" ");
		for(int k=0;k<(K-1);k++) System.out.print(A[k]+" ");



	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int K = sc.nextInt();
		int X = sc.nextInt();
		int A[] = new int[100];
		int B[] = new int[100];
		int p_cnt = X+1;
		int m_cnt = X-1;

		for(int i=0;i<K-1;i++) {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		}
		

		for(int j=K-2;j>=0;j--) System.out.print(B[j]+" ");
		System.out.print(X+" ");
		for(int k=0;k<(K-1);k++) System.out.print(A[k]+" ");



	}
} 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 A[] = new int[100];
		int B[] = new int[100];
		int p_cnt = X+1;
		int m_cnt = X-1;

		for(int i=0;i<K-1;i++) {
			A[i] = p_cnt++;
			B[i] = m_cnt--;
		}
		

		for(int j=K-2;j>=0;j--) System.out.print(B[j]+" ");
		System.out.print(X+" ");
		for(int k=0;k<(K-1);k++) System.out.print(A[k]+" ");



	}
}