import java.util.*;

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

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

