#include <bits/stdc++.h>
using namespace std;
int lw[201], rw[201], ln[201], rn[201];
int main() {
  int n, i, j, k, l, p;
  int m;
  while (cin >> n >> m) {
    memset(lw, 0, sizeof(lw));
    memset(ln, 0, sizeof(ln));
    memset(rw, 0, sizeof(rw));
    memset(rn, 0, sizeof(rn));
    k = 1, l = 2;
    int temp = m;
    int t = 1;
    i = 0;
    while (t <= 2 * n && t <= m) {
      lw[i++] = t;
      t += 2;
    }
    t = 2, i = 0;
    while (t <= 2 * n && t <= m) {
      rw[i++] = t;
      t += 2;
    }
    temp = m - n * 2;
    if (temp > 0) {
      t = n * 2 + 1, i = 0;
      while (t <= 4 * n && t <= m) {
        ln[i++] = t;
        t += 2;
      }
      t = n * 2 + 2, i = 0;
      while (t <= 4 * n && t <= m) {
        rn[i++] = t;
        t += 2;
      }
    }
    for (i = 0; i < n; i++) {
      if (ln[i] != 0) printf("%d ", ln[i]);
      if (lw[i] != 0) printf("%d ", lw[i]);
      if (rn[i] != 0) printf("%d ", rn[i]);
      if (rw[i] != 0) printf("%d ", rw[i]);
    }
    cout << endl;
  }
}
