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

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int K = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        List<Integer> l = new ArrayList<>();
        l.add(X);
        for (int i = 1; i < K; i++) {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        }

        l.sort(Comparator.naturalOrder());
        for (int i = 0; i < l.size(); i++) {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator 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);
        int K = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        List<Integer> l = new ArrayList<>();
        l.add(X);
        for (int i = 1; i < K; i++) {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        }

        l.sort(Comparator.naturalOrder());
        for (int i = 0; i < l.size(); i++) {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        }
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int K = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        List<Integer> l = new ArrayList<>();
        l.add(X);
        for (int i = 1; i < K; i++) {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        }

        l.sort(Comparator.naturalOrder());
        for (int i = 0; i < l.size(); i++) {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        }
    } main {

        Scanner sc = new Scanner(System.in);
        int K = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        List<Integer> l = new ArrayList<>();
        l.add(X);
        for (int i = 1; i < K; i++) {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        }

        l.sort(Comparator.naturalOrder());
        for (int i = 0; i < l.size(); i++) {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int K = Integer.parseInt(sc.next()); K Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int X = Integer.parseInt(sc.next()); X Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> l = new ArrayList<>(); l new ArrayList<>() l.add(X) l.add l X for (int i = 1; i < K; i++) {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        } int i = 1; int i = 1; i 1 i < K i K i++ i++ i {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        } {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        } int before = X - i; before X - i X i int after = X + i; after X + i X i l.add(before) l.add l before l.add(after) l.add l after l.sort(Comparator.naturalOrder()) l.sort l Comparator.naturalOrder() Comparator.naturalOrder Comparator for (int i = 0; i < l.size(); i++) {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        } int i = 0; int i = 0; i 0 i < l.size() i l.size() l.size l i++ i++ i {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        } {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        } if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            } i <= l.size() i l.size() l.size l {
                System.out.print(l.get(i) + " ");
            } System.out.print(l.get(i) + " ") System.out.print System.out System System.out l.get(i) + " " l.get(i) l.get l i " " {
                System.out.println(l.get(i));
            } System.out.println(l.get(i)) System.out.println System.out System System.out l.get(i) l.get l i String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int K = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        List<Integer> l = new ArrayList<>();
        l.add(X);
        for (int i = 1; i < K; i++) {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        }

        l.sort(Comparator.naturalOrder());
        for (int i = 0; i < l.size(); i++) {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        }
    }
} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int K = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        List<Integer> l = new ArrayList<>();
        l.add(X);
        for (int i = 1; i < K; i++) {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        }

        l.sort(Comparator.naturalOrder());
        for (int i = 0; i < l.size(); i++) {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        }
    }
} Main
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int K = Integer.parseInt(sc.next());
        int X = Integer.parseInt(sc.next());

        List<Integer> l = new ArrayList<>();
        l.add(X);
        for (int i = 1; i < K; i++) {
            int before = X - i;
            int after = X + i;
            l.add(before);
            l.add(after);
        }

        l.sort(Comparator.naturalOrder());
        for (int i = 0; i < l.size(); i++) {
            if (i <= l.size()) {
                System.out.print(l.get(i) + " ");
            } else {
                System.out.println(l.get(i));
            }
        }
    }
}
