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