#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, m;
  while (cin >> n >> m) {
    long c = 0;
    if (n * 2 >= m) {
      for (int i = 0; i < m; i++) {
        cout << i + 1 << " ";
      }
    } else {
      c = 1;
      for (int i = 2 * n + 1; i <= m; i++) {
        cout << i << " " << c << " ";
        c++;
      }
      for (int i = c; i <= 2 * n; i++) {
        cout << i << " ";
      }
    }
  }
  return 0;
}
