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