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