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