#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n, m;
  cin >> n >> m;
  for (int i = 1; i < 2 * n + 1; i++) {
    if (i + 2 * n <= m) cout << i + 2 * n << " ";
    if (i <= m) cout << i << " ";
  }
  cout << endl;
}
