#include <bits/stdc++.h>
using namespace std;
using namespace ::std;
string ans;
bool tt = 0;
bool can(char a, char b) {
  if (a + 1 < b) {
    ans.push_back(a + 1);
    return 1;
  } else {
    if (a == b || a + 1 == b) {
      ans.push_back(a);
      return 0;
    } else {
      tt = 1;
      return 0;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m, k, i;
  cin >> n >> m;
  int l = (m - (n * 2));
  if (l > 0)
    k = m - l + 1;
  else {
    for (int i = int(1); i <= int(m); i++) cout << i << " ";
    return 0;
  }
  i = 1;
  while (i <= n * 2) {
    if (k <= m) cout << k++ << " ";
    cout << i++ << " ";
  }
}
