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