#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, h, i, j, t, m;
  long long p = 0, s, k, w, z, x, y;
  std::cin >> n >> m;
  int l[n + m + 1];
  if (n == 0) {
    for (i = 0; i <= n + m; i++) cout << (n + m + 1) - i << " ";
  } else if (m == 0) {
    for (i = 0; i <= n + m; i++) cout << (i + 1) << " ";
  } else {
    for (i = 1; i <= n; i++) cout << i << " ";
    cout << (n + m + 1) << " ";
    for (j = 1; i <= n + m; i++, j++) cout << (n + m + 1) - j << " ";
  }
  return 0;
}
