#include <bits/stdc++.h>
using namespace std;
bool debug = 1;
int n, m, k;
int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
long long ln, lk, lm;
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  n = a + b + 1;
  for (int i = n - a; i <= n; i++) printf("%d ", i);
  for (int i = n - a - 1; i >= 1; i--) printf("%d ", i);
  puts("");
  return 0;
}
