#include <bits/stdc++.h>
using namespace std;
int main() {
  ifstream("input.txt");
  ofstream("output.txt");
  int a, b, n;
  cin >> a >> b;
  n = a + b + 1;
  int ans = n - a;
  for (int i = ans; i <= n; i++) cout << i << " ";
  ans = n - a - 1;
  for (int i = ans; i > 0; i--) cout << i << " ";
  return 0;
}
