#include <bits/stdc++.h>
int main() {
  int n, m, l, p, q;
  scanf("%d%d", &n, &m);
  l = n * 2;
  p = l + 1;
  q = 1;
  if (m <= 2 * n) {
    while (q <= m) printf("%d ", q++);
  } else {
    while (q != l + 1) {
      if (p <= m) printf("%d ", p++);
      printf("%d ", q++);
    }
  }
  printf("\n");
  return 0;
}
