#include <bits/stdc++.h>
using namespace std;
struct _ {
  ios_base::Init i;
  _() {
    cin.sync_with_stdio(0);
    cin.tie(0);
  }
} _;
const int MAXN = -1;
int n, m;
int main() {
  int a, b;
  cin >> a >> b;
  int n = a + b + 1;
  for (int i = n - a; i <= n; ++i) cout << i << " ";
  for (int i = n - a - 1; i >= 1; --i) cout << i << " ";
  cout << endl;
  return 0;
}
