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