#include <bits/stdc++.h>
using namespace std;
vector<int> ans;
int n1, n2, n;
int main() {
  ios ::sync_with_stdio(false);
  cin.tie(0);
  cin >> n1 >> n2;
  n = n1 + n2 + 1;
  int ind = 1;
  for (int i = 0; i < n1; i++) ans.push_back(ind++);
  ans.push_back(n);
  for (int j = n - 1; j >= ind; j--) ans.push_back(j);
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  return 0;
}
