#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int l1[100];
  int l2[100];
  int r1[100];
  int r2[100];
  int c = 0, v = 0, b = 0, x = 0;
  int s = 1;
  while (s <= m) {
    if (s <= 2 * n) {
      if (s % 2 != 0) {
        l1[c++] = s;
      } else {
        r1[b++] = s;
      }
    } else {
      if (s % 2 != 0) {
        l2[v++] = s;
      } else {
        r2[x++] = s;
      }
    }
    s++;
  }
  int c1 = 0, v1 = 0, b1 = 0, x1 = 0;
  s = 1;
  int flag = 1;
  while (s <= m) {
    if (flag == 1) {
      if (v1 < v) {
        cout << l2[v1] << " ";
        v1++;
        s++;
      }
      flag = 2;
    } else if (flag == 2) {
      if (c1 < c) {
        cout << l1[c1] << " ";
        c1++;
        s++;
      }
      flag = 3;
    } else if (flag == 3) {
      if (x1 < x) {
        cout << r2[x1] << " ";
        x1++;
        s++;
      }
      flag = 4;
    } else if (flag == 4) {
      if (b1 < b) {
        cout << r1[b1] << " ";
        b1++;
        s++;
      }
      flag = 1;
    }
  }
  cout << endl;
}
