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