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