#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B;
  cin >> A >> B;
  int N = A + B + 1;
  vector<int> height(N, 0);
  height[A] = N;
  int x = N - 1;
  for (int i = A + 1; i < N; i++) {
    height[i] = x--;
  }
  for (int i = 0; i < A; i++) {
    height[i] = i + 1;
  }
  for (int i = 0; i < N; i++) {
    cout << height[i] << " ";
  }
  return 0;
}
