#include <bits/stdc++.h>
using namespace std;
const long long mo = 1000000007;
long long i, n, a[1000], m;
long long d(long long c, long long b) {
  if (b == 0)
    return c;
  else
    return d(b, c % b);
}
int main() {
  cin >> n >> m;
  for (i = 0; i < n; i++) {
    if (2 * i + 1 + 2 * n <= m) cout << 2 * i + 1 + 2 * n << " ";
    if (2 * i + 1 <= m) cout << 2 * i + 1 << " ";
    if (2 * i + 2 + 2 * n <= m) cout << 2 * i + 2 + 2 * n << " ";
    if (2 * i + 2 <= m) cout << 2 * i + 2 << " ";
  }
  return 0;
}
