#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  vector<vector<int>> places(n, vector<int>(4));
  for (int i = 0; i < n; i++)
    places[i][1] = 2 * i + 1, places[i][3] = 2 * i + 2,
    places[i][0] = places[i][1] + 2 * n, places[i][2] = places[i][3] + 2 * n;
  for (auto &row : places)
    for (auto &item : row)
      if (item <= m) cout << item << ' ';
  return 0;
}
