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