#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  int up, down;
  cin >> up >> down;
  for (int i = 1; i < up + 1; i++) {
    cout << i << " ";
  }
  for (int i = up + down + 1; i > up; i--) {
    cout << i << " ";
  }
}
