#include <bits/stdc++.h>
using namespace std;
template <class T>
inline T _abs(const T n) {
  return (n < 0 ? -n : n);
}
template <class T>
inline T _max(const T a, const T b) {
  return (!(a < b) ? a : b);
}
template <class T>
inline T _min(const T a, const T b) {
  return (a < b ? a : b);
}
template <class T>
inline void _setmax(T &a, const T b) {
  if (a < b) a = b;
}
template <class T>
inline void _setmin(T &a, const T b) {
  if (b < a) a = b;
}
template <class T>
inline T _sqr(const T x) {
  return x * x;
}
const double EPS = 1e-9;
const double PI = acos(-1.0);
const int INF = 0x7f7f7f7f;
const int TMAX = 1 << 18;
int arr[1000000];
int main() {
  int a, b;
  scanf("%d", &a);
  scanf("%d", &b);
  if (!a) {
    for (int i = b + 1; i > 0; i--) {
      cout << i << " ";
    }
    cout << endl;
  } else {
    int i = a + b + 1;
    for (int j = 0; j <= a; j++) {
      arr[j] = i;
      i--;
    }
    for (int j = a; j > -1; j--) {
      cout << arr[j] << " ";
    }
    while (i > 0) {
      cout << i << " ";
      i--;
    }
    cout << endl;
  }
}
