#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> b;
  int m, n;
  cin >> n >> m;
  for (int i = 1; i <= 4 * n; i++) {
    if (i <= m)
      b.push_back(i);
    else
      b.push_back(0);
  }
  n = b.size() / 2;
  for (int i = 0; i < n; i++) {
    if (b[n + i] != 0) cout << b[n + i] << " ";
    if (b[i] != 0) cout << b[i] << " ";
  }
  return 0;
}
