#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  int p = b + 1;
  int q = b;
  cout << p << " ";
  for (int i = 0; i < a; ++i) {
    ++p;
    cout << p << " ";
  }
  for (int i = 0; i < b; ++i) {
    cout << q << " ";
    --q;
  }
  return 0;
}
