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