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