#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  while (b != 0) {
    int t = a;
    a = b;
    b = t % b;
  }
  return a;
}
int n, m;
void chk(int t) {
  if (t > 0 && t <= n) cout << t << ' ';
}
int main() {
  cin >> m >> n;
  ;
  int A[107][4];
  for (int i = 0; i < 107; ++i)
    for (int j = 0; j < 4; ++j) A[i][j] = 0;
  int i = 1;
  for (int i = 0; i < m; ++i) {
    A[i][0] = 2 * i + 1;
    A[i][1] = 2 * i + 2;
    A[i][3] = 2 * (m + i) + 1;
    A[i][2] = 2 * (m + i) + 2;
  }
  for (int i = 0; i < m; ++i) {
    chk(A[i][3]);
    chk(A[i][0]);
    chk(A[i][2]);
    chk(A[i][1]);
  }
  return 0;
}
