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