#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int a, b;
  cin >> a >> b;
  int n = a + b + 1;
  for (int(i) = (int)(n - a); (i) <= (int)(n); ++(i)) printf("%d ", i);
  for (int(i) = (int)(n - a - 1); (i) >= (int)(1); --(i)) printf("%d ", i);
  return 0;
}
