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