#include <bits/stdc++.h>
using namespace std;
int main() {
  int u;
  int d;
  cin >> u >> d;
  vector<int> v;
  for (int i = 0; i < (d + u + 1); i++) {
    v.push_back(i + 1);
  }
  if (u != 0) {
    cout << "1"
         << " ";
  }
  for (int i = d + 1; i < d + u + 1; i++) {
    cout << v[i] << " ";
  }
  for (int j = d; j > 0; j--) {
    cout << v[j] << " ";
  }
  if (u == 0) {
    cout << "1";
  }
  return 0;
}
