#include <bits/stdc++.h>
using namespace std;
int main() {
  int rev = 1;
  int a, b; scanf("%d%d", &a, &b);
  if (a < b) swap(a, b), rev = -1;
  int cur = 0;
  for (int i = 1; i <= a; ++i) printf("%d ", i * rev), cur += i * rev;
  for (int i = 1; i < b; ++i) printf("%d ", -i * rev), cur -= i * rev;
  printf("%d\n", -cur);
  return 0;
}
#include <bits/stdc++.h>
using namespace std;
int a,b;
int main(){
	cin>>a>>b;
	int ans=2*a+100-b;
	cout<<ans;
}