#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
int IT_MAX = 1 << 17;
const long long MOD = 1000000007;
const int INF = 1034567890;
const long long LL_INF = 1234567890123456789ll;
const double PI = acos(-1);
const long double ERR = 1E-8;
int main() {
  int N, M, i, j;
  scanf("%d %d", &N, &M);
  for (i = 1; i <= 2 * N; i += 2) {
    int t1 = i;
    int t2 = i + 1;
    int t3 = t1 + 2 * N;
    int t4 = t2 + 2 * N;
    if (t3 <= M) printf("%d ", t3);
    if (t1 <= M) printf("%d ", t1);
    if (t4 <= M) printf("%d ", t4);
    if (t2 <= M) printf("%d ", t2);
  }
  printf("\n");
  return 0;
}
