#include <bits/stdc++.h>
int main() {
  int x, a, b, n, i, c = 1;
  scanf("%d %d", &a, &b);
  n = a + b + 1;
  for (i = b + 1; i <= n; i++) printf("%d ", i);
  for (i = b; i > 0; i--) printf("%d ", i);
  printf("\n");
}
