#include <bits/stdc++.h>
using namespace std;
const double Pi = acos((double)-1);
const double Eps = 1E-6;
int read() {
  int $x;
  scanf("%d", &$x);
  return $x;
}
long long sqr(long long $x) { return $x * $x; }
int x[100000], N, A, B;
int main() {
  A = read(), B = read();
  N = A + B + 1;
  x[0] = 1;
  int i = 0, t;
  t = 1;
  while (A--) x[++i] = ++t;
  t = 1;
  while (B--) x[++i] = --t;
  for (i = 0; i < N; ++i) printf("%d ", x[i] - t + 1);
  return 0;
}
