#include <bits/stdc++.h>
using namespace std;
vector<int> bus[10];
int n, m;
int main() {
  cin >> n;
  for (int i = 1; i <= n * 2; i += 2) bus[1].push_back(i);
  for (int i = 2; i <= n * 2; i += 2) bus[4].push_back(i);
  int cur = 2 * n + 1;
  for (int j = 1; j <= n; ++j) {
    bus[2].push_back(cur++);
    bus[3].push_back(cur++);
  }
  vector<int> out;
  for (int i = 0; i < n; ++i) {
    out.push_back(bus[2][i]);
    out.push_back(bus[1][i]);
    out.push_back(bus[3][i]);
    out.push_back(bus[4][i]);
  }
  cin >> m;
  for (int i = 0; i < out.size(); ++i)
    if (out[i] <= m) cout << out[i] << ' ';
}
