#include <bits/stdc++.h>   using namespace std;   typedef long long ll;   using mseti = multiset<int>;   using mmapii = multimap<int, int>;   inline int int_max() { return numeric_limits<int>::max(); }   inline int int_min() { return numeric_limits<int>::min(); }   inline ll ll_max() { return numeric_limits<ll>::max(); }   inline ll ll_min() { return numeric_limits<ll>::min(); }   inline void fastIO() {     cin.tie(nullptr);     cout.tie(nullptr);     ios_base::sync_with_stdio(0);   }   template <class T>   inline ostream& operator<<(ostream& p, deque<T>& o) {     for (auto& e : o) p << e <<    ;     p <<   n ;     return p;   }   template <class T>   inline istream& operator>>(istream& p, vector<T>& o) {     for (auto& e : o) p >> e;     return p;   }   const int M = 1e9;   const int N = 1e2;   void solve() {     int n, m;     cin >> n >> m;     for (int i = 1; i <= 2 * n; i++) {       if (2 * n + i <= m) cout << 2 * n + i <<    ;       if (i <= m) cout << i <<    ;     }     cout <<   n ;   }   int main() {     fastIO();     int T = 1;     while (T--) {       solve();     }   }   