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