#include <bits/stdc++.h>
using namespace std;
signed main() {
  ifstream in("Text.txt");
  int n, m;
  int A, B;
  cin >> A >> B;
  int fir = B + 1;
  int cur = fir;
  cout << fir << " ";
  for (int i = 0; i < A; i++) cout << ++cur << " ";
  cur = B;
  for (int i = 0; i < B; i++) cout << cur-- << " ";
  cout << endl;
  return 0;
}
