#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int a, b;
  cin >> a >> b;
  a++;
  for (int i = 0; i < a; i++) cout << b + i + 1 << " ";
  for (int i = 0; i < b; i++) cout << b - i << " ";
  return 0;
}
