#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n;
  cin >> n >> m;
  int c = 0;
  for (int i = 1; i <= 2 * n; i++) {
    if (i + (2 * n) <= m) {
      cout << i + (2 * n);
      c++;
      if (c < m) {
        cout << " ";
      } else
        cout << endl;
    }
    if (i <= m) {
      cout << i;
      c++;
      if (c < m)
        cout << " ";
      else
        cout << endl;
    }
  }
}
