#include <bits/stdc++.h>
using namespace std;
const long long inf = 10000000;
map<int, bool> visited;
int main() {
  int a, b, n;
  cin >> a >> b;
  n = a + b + 1;
  for (int i = 1; i <= a; ++i) {
    if (!visited[i]) {
      cout << i << " ";
      visited[i] = 1;
    }
  }
  cout << n << " ";
  for (int i = 1; i <= b; ++i) {
    cout << n - i << " ";
  }
}
