#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= n; ++i) {
    if (2 * (n + i) - 1 <= m) cout << 2 * (n + i) - 1 << " ";
    if (2 * i - 1 <= m) cout << 2 * i - 1 << " ";
    if (2 * (n + i) <= m) cout << 2 * (n + i) << " ";
    if (2 * i <= m) cout << 2 * i << " ";
  }
}
