#include <bits/stdc++.h>
using namespace std;
int a[405], b[405];
int main() {
  int n, m, i, cnt;
  while (scanf("%d %d", &n, &m) != EOF) {
    for (i = 1; i <= n * 2; i++) {
      a[i * 2 - 1] = n * 2 + i;
      a[i * 2] = i;
    }
    cnt = 0;
    for (i = 1; i <= n * 4; i++) {
      if (a[i] <= m) b[cnt++] = a[i];
    }
    for (i = 0; i < cnt; i++) {
      if (i == cnt - 1)
        printf("%d\n", b[i]);
      else
        printf("%d ", b[i]);
    }
  }
  return 0;
}
