#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007LL;
int main(int argc, char const *argv[]) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long a, b;
  cin >> a >> b;
  long long n = a + b + 1;
  for (int i = b + 1; i >= 1; i--) {
    cout << i << " ";
  }
  for (int i = b + 2; i <= n; i++) {
    cout << i << " ";
  }
  return 0;
}
