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