#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m;
  cin >> n >> m;
  long long t = n + m + 1;
  for (int i = t - n; i <= t; i++) cout << i << ' ';
  for (int i = t - n - 1; i >= 1; i--) cout << i << ' ';
  cout << endl;
}
