#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  long long x, y, z, m, n, cnt = 0;
  cin >> x >> y;
  long long i, j;
  i = 2 * x + 1;
  j = 1;
  while (j <= 2 * x) {
    if (i <= y) cout << i << " ";
    if (j <= y) cout << j << " ";
    i++;
    j++;
  }
  cout << endl;
  return 0;
}
