#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int a, b;
  cin >> a >> b;
  int n = a + b + 1;
  int arr[n];
  int x = n;
  for (int i = a; i >= 0; i--) {
    arr[i] = x;
    x--;
  }
  for (int i = a + 1; i < n; i++) {
    arr[i] = x;
    x--;
  }
  for (int i = 0; i < n; i++) {
    cout << arr[i] << " ";
  }
  return 0;
}
