#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, a, b;
  cin >> a >> b;
  n = a + b + 1;
  for (int i = b + 1; i >= 1; i--) cout << i << " ";
  for (int i = b + 2; i <= n; i++) cout << i << " ";
  return 0;
}
