#include <bits/stdc++.h>
using namespace std;
vector<int> r, l, nr, nl;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  int n, m, c = 0, t = 0;
  cin >> n >> m;
  t = m;
  if (m <= 2 * n) {
    for (int i = 1; i <= m; i++) {
      c++;
      if (c == 1) {
        l.push_back(i);
      } else if (c == 2) {
        r.push_back(i);
        c = 0;
      }
    }
    if (m % 2 == 0) {
      for (int i = 0; i < l.size(); i++) {
        cout << l[i] << " " << r[i] << " ";
      }
    } else {
      for (int i = 0; i < r.size(); i++) {
        cout << l[i] << " " << r[i] << " ";
      }
      cout << l[l.size() - 1];
    }
  } else {
    m = m - (2 * n);
    for (int i = 1; i <= 2 * n; i++) {
      c++;
      if (c == 1) {
        l.push_back(i);
      } else if (c == 2) {
        r.push_back(i);
        c = 0;
      }
    }
    c = 0;
    for (int i = 2 * n + 1; i <= t; i++) {
      c++;
      if (c == 1) {
        nl.push_back(i);
      } else if (c == 2) {
        nr.push_back(i);
        c = 0;
      }
    }
    for (int i = 0; i < l.size(); i++) {
      if (i + 1 <= nl.size()) {
        cout << nl[i] << " ";
      }
      cout << l[i] << " ";
      if (i + 1 <= nr.size()) {
        cout << nr[i] << " ";
      }
      cout << r[i] << " ";
    }
  }
  return 0;
}
