#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int n = a + b + 1;
  int A[100000] = {0};
  int x = n - a;
  for (int i = 0; i < a + 1; i++) {
    A[i] = x;
    x++;
  }
  x = n - a - 1;
  for (int i = a + 1; i < n; i++) {
    A[i] = x;
    x--;
  }
  for (int i = 0; i < n; i++) cout << A[i] << ' ';
  cout << endl;
}
