#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:640000000")
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int a, b;
  cin >> a >> b;
  for (int _n((a)-1), i(0); i <= _n; ++i) cout << i + 1 << ' ';
  for (int i = (a + b + 1), _b = (a + 1); i >= _b; --i) cout << i << ' ';
  cout << endl;
  return 0;
}
