#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m;
  cin >> n >> m;
  bool t = false;
  for (int i = n + m + 1; m > 0; m--, i--) {
    cout << i << " ";
  }
  n++;
  for (int i = 1; n != 0; i++, n--) {
    cout << i << " ";
  }
  cout << "\n";
  return 0;
}
