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