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