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