#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int a, b;
  cin >> a >> b;
  int start = b + 1;
  int s_s = start + 1;
  for (int i = 0; i < a + b + 1; i++) {
    if (start >= 1) {
      cout << start << " ";
      start--;
    } else {
      cout << s_s << " ";
      s_s++;
    }
  }
}
