#include <bits/stdc++.h>
#pragma GCC optimze("Ofast")
const long long int M = 1e9 + 7;
const long double PI = 3.14159265;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n, i, a, b;
  cin >> a >> b;
  n = a + b + 1;
  b++;
  for (i = n - a; i <= n; i++) cout << i << " ";
  for (i = n - a - 1; i >= 1; i--) cout << i << " ";
}
