#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, n, x(0), y(0), z(0), k(0);
  cin >> n >> m;
  int m2 = m;
  while (m2) {
    if (2 * n + 1 + x <= m) {
      cout << 2 * n + 1 + x << " ";
      x += 2;
      m2--;
    }
    if (m2 == -1) {
      break;
    }
    if (y + 1 <= m) {
      cout << y + 1 << " ";
      y += 2;
      m2--;
    }
    if (m2 == -1) {
      break;
    }
    if (2 * n + 2 + z <= m) {
      cout << 2 * n + 2 + z << " ";
      z += 2;
      m2--;
    }
    if (m2 == -1) {
      break;
    }
    if (2 + k <= m) {
      cout << 2 + k << " ";
      k += 2;
      m2--;
    }
    if (m2 == -1) {
      break;
    }
  }
}
