#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  vector<int> ans(m);
  int i = 0;
  int count = 1;
  while (i < m) {
    if (i % 2 == 0 && 2 * n + count <= m) {
      ans[i] = 2 * n + count;
    } else {
      ans[i] = count;
      count++;
    }
    i++;
  }
  for (int i = 0; i < ans.size(); i++) {
    cout << ans[i] << " ";
  }
}
