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