#include <bits/stdc++.h>
using namespace std;
const int INF = int(1e9);
const long long INFll = 1ll * INF * INF;
const int MOD = 1000000007;
int nextInt() {
  int q = 0;
  char c;
  while (c = getchar()) {
    if (c == ' ' || c == '\n') break;
    q = q * 10 + (c - '0');
  }
  return q;
}
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  int a, b;
  cin >> a >> b;
  int n = a + b + 1;
  for (int i = 0; i < a; ++i) cout << i + 1 << " ";
  for (int i = 0; i <= b; ++i) cout << n - i << " ";
  return 0;
}
