#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int p = 0;
  int b[] = {1, 0, 2, 3};
  int a[] = {1, 2 * n + 1, 2 * n + 2, 2};
  for (int j = 0; j < n; j++) {
    for (int i = 0, k = 0; i < 4; i++, k++) {
      if (p > m) break;
      if (a[b[k]] > m) continue;
      cout << a[b[k]] << " ";
      a[b[k]] += 2;
      if (k == 3) k = 0;
      p++;
    }
  }
  return 0;
}
