#include <bits/stdc++.h>
using namespace std;
int main() {
  long a;
  cin >> a;
  long b;
  cin >> b;
  long n = a + b + 1;
  if (a == 0) {
    for (int i = n; i > 0; i--) cout << i << " ";
    return 0;
  } else if (b == 0) {
    for (int i = 1; i <= n; i++) cout << i << " ";
    return 0;
  }
  for (int i = n - a; i <= n; i++) cout << i << " ";
  for (int i = b; i > 0; i--) cout << i << " ";
  return 0;
}
