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