#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int q = 1 + b + 1;
  int l = q;
  int y = b + 1;
  if (!a) {
    while (y--) {
      cout << y + 1 << " ";
    }
  } else {
    cout << "1 ";
    while (a--) {
      cout << q++ << " ";
    }
    while (b--) {
      cout << --l << " ";
    }
  }
}
