#include <bits/stdc++.h>
int main(void) {
  int a, b;
  int MAX;
  scanf("%d%d", &a, &b);
  MAX = a + b + 1;
  if (a == 0) {
    for (int i = MAX; i >= 1; i--) printf("%d ", i);
  } else if (b == 0) {
    for (int i = 1; i <= MAX; i++) printf("%d ", i);
  } else {
    printf("1 ");
    for (int i = MAX - a + 1; i <= MAX; i++) printf("%d ", i);
    for (int i = MAX - a; i >= 2; i--) printf("%d ", i);
  }
  return 0;
}
