#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
vector<long long> vv;
set<long long> st;
long long x, y, z;
string s, s1, s2;
void memset_ll(long long a[], long long v, long long n) {
  for (long long i = 0; i < n; i++) a[i] = v;
}
void memset_s(char a[], char v, long long n) {
  for (long long i = 0; i < n; i++) a[i] = v;
}
int compare(const void* a, const void* b) {
  return (*(long long*)a - *(long long*)b);
}
void q_sort(long long a[], long long n) {
  qsort(a, n, sizeof(long long), compare);
}
static int compare1(const void* a, const void* b) {
  if (*(double*)a > *(double*)b)
    return 1;
  else if (*(double*)a < *(double*)b)
    return -1;
  else
    return 0;
}
void q_sort_d(double a[], long long n) {
  qsort(a, n, sizeof(double), compare1);
}
long long sum(long long n) {
  long long i = 0, a[6], j, k = 0;
  while (n > 0) {
    a[i] = n % 10;
    n /= 10;
    i++;
  }
  for (j = 0; j < i; j++) k += a[j];
  return k;
}
string trans_upper(string ss) {
  transform(ss.begin(), ss.end(), ss.begin(), ::toupper);
  return ss;
}
long long power(long long a, long long b) {
  long long pow = 1;
  while (b) {
    if (b & 1) {
      pow = pow * a;
      --b;
    }
    a = a * a;
    b = b / 2;
  }
  return pow;
}
long long fact(long long n) {
  long long f = 1, i;
  for (i = 1; i <= n; i++) f = f * i;
  return f;
}
long long is_prime(long long n) {
  long long i, j, k = 1;
  for (i = 2; i <= n / 2; i++) {
    if (n % i == 0) {
      k = 0;
      break;
    }
  }
  return k;
}
int main() {
  long long t, l, p, q, n, m, o = 0, r, i, j, h, k, e = 0, d = 0, f = 0, g = 0;
  long long temp = 0, nl, np;
  double p1, p2 = 0.0, p3 = 0.0, p4, p5, p6, pp, ppp;
  p1 = 3.1415926536;
  long long r1, r2, c1, c2, d1, d2;
  cin >> n >> m;
  r = n + m + 1;
  if (n > 0) {
    for (i = 0; i < n; i++) {
      v.push_back(r);
      r--;
    }
  } else {
    v.push_back(r);
    r--;
  }
  for (i = 0; i < m; i++) {
    vv.push_back(r);
    r--;
  }
  for (i = 1; i <= r; i++) cout << i << " ";
  while (!v.empty()) {
    cout << v.back() << " ";
    v.pop_back();
  }
  for (i = 0; i < vv.size(); i++) cout << vv[i] << " ";
  return 0;
}
