#include <bits/stdc++.h>
using namespace std;
const unsigned long long O = 2e9;
const double E = 1e-9;
const double pi = 3.1415926536;
int DX[] = {1, -1, 0, 0};
int DY[] = {0, 0, 1, -1};
int main() {
  int n, m;
  cin >> n >> m;
  int out = n * 2 + 1, in = 1;
  if (m > n * 2) {
    for (int i = 0; i < m; i++) {
      if (i % 2 == 0 && out <= m)
        cout << out++ << " ";
      else
        cout << in++ << " ";
    }
  } else
    for (int i = 1; i <= m; i++) cout << i << " ";
}
