#include <bits/stdc++.h>
using namespace std;
pair<long long, long long> a[101][2];
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n, m;
  cin >> n >> m;
  long long c = 0;
  for (long long i = 0; i < n; ++i) {
    a[i][0].first = ++c;
    if (c < m) a[i][1].second = ++c;
    if (c == m) break;
  }
  if (c != m) {
    for (long long i = 0; i < n; ++i) {
      a[i][0].second = ++c;
      if (c < m) a[i][1].first = ++c;
      if (c == m) break;
    }
  }
  for (long long i = 0; i < n; ++i) {
    if (a[i][0].second != 0 && a[i][0].first != 0)
      cout << a[i][0].second << " " << a[i][0].first << " ";
    else if (a[i][0].second == 0) {
      if (a[i][0].first != 0)
        cout << a[i][0].first << " ";
      else
        return 0;
    }
    if (a[i][1].first != 0 && a[i][1].second != 0)
      cout << a[i][1].first << " " << a[i][1].second << " ";
    else if (a[i][1].first == 0) {
      if (a[i][1].second != 0)
        cout << a[i][1].second << " ";
      else
        return 0;
    }
  }
  return 0;
}
