#include <bits/stdc++.h>
using namespace std;
int n, m;
int main() {
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    int t[4] = {0};
    t[0] = 2 * n + i * 2;
    t[1] = i * 2;
    t[2] = 2 * n + i * 2 + 1;
    t[3] = i * 2 + 1;
    for (int j = 0; j < 4; j++)
      if (t[j] < m) cout << t[j] + 1 << ' ';
  }
  puts("");
}
