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