#include <bits/stdc++.h>
using namespace std;
int main() {
  int up;
  int down;
  int cur;
  while (cin >> up >> down) {
    cur = down + 1;
    for (int i = 1; i <= down + 1; ++i) {
      cout << cur-- << " ";
    }
    cur = down + 2;
    for (int i = 1; i <= up; ++i) {
      cout << cur++ << " ";
    }
    cout << endl;
  }
  return 0;
}
