#include <bits/stdc++.h>
using namespace std;
int SET[100001] = {0};
int main() {
  int A, B;
  cin >> A >> B;
  int N = A + B + 1;
  if (A != 0) {
    int upunit = N / A;
    int addf = 1;
    int i = 1;
    for (; i <= A; i++) {
      if (addf > N) {
        break;
      }
      cout << addf << " ";
      SET[addf] = -1;
      addf += upunit;
    }
    if (addf != N) {
      SET[N] = -1;
      cout << N << " ";
    }
  }
  for (int i = N; i > 0; i--) {
    if (SET[i] == 0) {
      cout << i << " ";
    }
  }
  return 0;
}
