#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long u, d, i;
  cin >> u >> d;
  long long n = u + d + 1;
  if (d == 0) {
    for (i = 1; i <= n; i++) cout << i << " ";
  } else if (u == 0) {
    for (i = n; i >= 1; i--) cout << i << " ";
  } else {
    cout << 1 << " ";
    for (i = 1; i < u; i++) {
      cout << i + 1 << " ";
    }
    cout << n << " ";
    for (i = 1; i <= d; i++) cout << n - i << " ";
  }
  return 0;
}
