#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int height = 1e5 + 1;
void solve() {
  int up, down;
  cin >> up >> down;
  int top = up + down + 1;
  int i = 1;
  while (up--) {
    std::cout << i << " ";
    i++;
  }
  std::cout << top << " ";
  while (down--) {
    std::cout << --top << " ";
  }
}
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
