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