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