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