#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  vector<pair<int, int> > r1(n);
  vector<pair<int, int> > r2(n);
  bool done = false;
  int in = 0;
  for (int i = 1; i <= m; i++) {
    if (!done) {
      if (i & 1) r1[in].first = i;
      if (!(i & 1)) {
        r2[in++].second = i;
      }
      if (in == n) {
        in = 0;
        done = true;
      }
    } else {
      if (i & 1) r1[in].second = i;
      if (!(i & 1)) {
        r2[in++].first = i;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    if (r1[i].second) cout << r1[i].second << " ";
    if (r1[i].first) cout << r1[i].first << " ";
    if (r2[i].first) cout << r2[i].first << " ";
    if (r2[i].second) cout << r2[i].second << " ";
  }
  return 0;
}
