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