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