#include <bits/stdc++.h>
using namespace std;
long long n, m, i;
const int maxn = 1e5 + 20;
int arr[maxn];
int main() {
  cin >> n >> m;
  int x = m;
  if (m <= n * 2) {
    for (int i = 1; i <= m; i++) {
      cout << i << " ";
    }
  } else {
    for (i = 1; i <= (m - n * 2); i++) {
      cout << i + (n * 2) << " " << i << " ";
      arr[i + (n * 2)]++, arr[i]++;
    }
    for (int i = 1; i <= m; i++) {
      if (arr[i] == 0) cout << i << " ";
    }
  }
  return 0;
}
