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