#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int N = a + b + 1;
  for (int i = N - a; i <= N; i++) {
    cout << i << " ";
  }
  if (b == 0) {
    cout << endl;
    return 0;
  }
  cout << b;
  for (int i = b - 1; i > 0; i--) {
    cout << " " << i;
  }
  cout << endl;
}
