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