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