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