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