#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int a, b, arr[100010];
  cin >> a >> b;
  for (int i = 1; i <= a + b + 1; i++) {
    arr[i] = i;
  }
  reverse(arr + a + 1, arr + a + b + 2);
  for (int i = 1; i <= a + b + 1; i++) {
    cout << arr[i] << ' ';
  }
}
