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