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