#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int up, down;
  cin >> up >> down;
  int n = up + down + 1;
  for (int i = n - up; i <= n; i++) cout << i << " ";
  for (int i = n - up - 1; i >= 1; i--) cout << i << " ";
}
