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