#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n_Cases = 1;
  for (long long case_i = 1; case_i <= n_Cases; case_i++) {
    long long up, down;
    cin >> up >> down;
    long long n = up + down + 1;
    for (long long i = 1; i <= up; i++) cout << i << " ";
    cout << n << " ";
    for (long long j = n - 1; j >= n - down; j--) cout << j << " ";
    cout << "\n";
  }
  return 0;
}
