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