#include <bits/stdc++.h>
using namespace std;
double const pi = 3.1415926536;
int main() {
  int n, m;
  cin >> n >> m;
  int ro[n], r[n], lo[n], l[n], a = 0, b = 0, c = 0, d = 0;
  int s = 1;
  while (s <= m) {
    if (s <= 2 * n) {
      if (s % 2 == 1) {
        ro[a] = s;
        a++;
      } else {
        lo[c] = s;
        c++;
      }
    } else {
      if (s % 2 == 1) {
        r[b] = s;
        b++;
      } else {
        l[d] = s;
        d++;
      }
    }
    s++;
  }
  int y = 0, x = 0, o = 0, z = 0;
  while (s > 1) {
    if (y < b) {
      cout << r[y] << " ";
      y++;
      s--;
    }
    if (x < a) {
      cout << ro[x] << " ";
      x++;
      s--;
    }
    if (o < d) {
      cout << l[o] << " ";
      o++;
      s--;
    }
    if (z < c) {
      cout << lo[z] << " ";
      z++;
      s--;
    }
  }
}
