#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, m, i, j, k;
  cin >> n >> m;
  vector<int> ans;
  vector<vector<int>> v(n, vector<int>(4));
  for (i = 0; i < n; i++) {
    v[i][0] = i * 2 + 1;
    v[i][3] = i * 2 + 2;
    v[i][1] = i * 2 + 1 + n * 2;
    v[i][2] = i * 2 + 2 + n * 2;
  }
  for (i = 0; i < n; i++) {
    ans.push_back(v[i][1]);
    ans.push_back(v[i][0]);
    ans.push_back(v[i][2]);
    ans.push_back(v[i][3]);
  }
  for (auto p : ans) {
    if (p <= m) cout << p << " ";
  }
  cout << "\n";
  return 0;
}
