#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  ios_base::sync_with_stdio(false);
  int n;
  int m;
  cin >> n >> m;
  int tmp = 0;
  char c = 'l';
  vector<int> leftWindow, rightWindow;
  while (tmp < m && tmp < (2 * n)) {
    tmp++;
    if (c == 'l') {
      leftWindow.push_back(tmp);
    } else if (c == 'r') {
      rightWindow.push_back(tmp);
    }
    if (c == 'l')
      c = 'r';
    else
      c = 'l';
  }
  c = 'l';
  vector<int> leftNonWindow, rightNonWindow;
  while (tmp < m && tmp < (4 * n)) {
    tmp++;
    if (c == 'l') {
      leftNonWindow.push_back(tmp);
    } else if (c == 'r') {
      rightNonWindow.push_back(tmp);
    }
    if (c == 'l') {
      c = 'r';
    } else {
      c = 'l';
    }
  }
  int lnw = (int)leftNonWindow.size();
  int lw = (int)leftWindow.size();
  int rw = (int)rightWindow.size();
  int rnw = (int)rightNonWindow.size();
  for (int i = 0; i < n; i++) {
    if (i + 1 <= lnw) {
      if (leftNonWindow[i] > 0 && leftNonWindow[i] <= m) {
        cout << leftNonWindow[i] << " ";
      }
    }
    if (i + 1 <= lw) {
      if (leftWindow[i] > 0 && leftWindow[i] <= m) cout << leftWindow[i] << " ";
    }
    if (i + 1 <= rnw) {
      if (rightNonWindow[i] > 0 && rightNonWindow[i] <= m)
        cout << rightNonWindow[i] << " ";
    }
    if (i + 1 <= rw) {
      if (rightWindow[i] > 0 && rightWindow[i] <= m)
        cout << rightWindow[i] << " ";
    }
  }
  return 0;
}
