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