#include <bits/stdc++.h>
using namespace std;
inline int in() {
  int x;
  scanf("%d", &x);
  return x;
}
const int N = 1e5 + 10;
const int MOD = 1e9 + 7;
const long double eps = 1e-12;
int n, m;
int main() {
  n = in();
  m = in();
  vector<int> vec;
  for (int i = 0; i < n; i++) {
    vec.push_back(2 * n + 2 * i + 1);
    vec.push_back(2 * i + 1);
    vec.push_back(2 * n + 2 * i + 2);
    vec.push_back(2 * i + 2);
  }
  for (int i = 0; i < vec.size(); i++) {
    if (vec[i] <= m) cout << vec[i] << " ";
  }
  return 0;
}
