#include <bits/stdc++.h>
using namespace std;
int n, m;
void popout(int seatNo) {
  int personNo;
  bool flag = 0;
  if (seatNo > 2 * n) flag = 1;
  if (seatNo % 4 == 1)
    personNo = (n << 1) + 1;
  else if (seatNo % 4 == 2)
    personNo = 1;
  else if (seatNo % 4 == 3)
    personNo = (n << 1) + 2;
  else if (seatNo % 4 == 0)
    personNo = 2;
  int d = ((seatNo - 1) / 4);
  d <<= 1;
  personNo += d;
  if (personNo > m) return;
  cout << personNo << " ";
  return;
}
int main() {
  cin >> n >> m;
  for (int i = 1; i <= 4 * n; i++) {
    popout(i);
  }
  return 0;
}
