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