#include <bits/stdc++.h>
using namespace std;
const long double pi = acos(-1.0);
const long double eps = 1e-8;
const int INF = 1E9;
const int MAXN = 5555;
int a, b, n;
int main() {
  cin >> a >> b;
  n = a + b + 1;
  for (int i = b + 1; i >= 1; i--) cout << i << ' ';
  for (int i = b + 2; i <= n; i++) cout << i << ' ';
  return 0;
}
