Hiking club "Up the hill" just returned from a walk. Now they are trying to remember which hills they've just walked through.

It is known that there were N stops, all on different integer heights between 1 and N kilometers (inclusive) above the sea level. On the first day they've traveled from the first stop to the second stop, on the second day they've traveled from the second to the third and so on, and on the last day they've traveled from the stop N - 1 to the stop N and successfully finished their expedition.

They are trying to find out which heights were their stops located at. They have an entry in a travel journal specifying how many days did they travel up the hill, and how many days did they walk down the hill.

Help them by suggesting some possible stop heights satisfying numbers from the travel journal.


-----Input-----

In the first line there is an integer non-negative number A denoting the number of days of climbing up the hill. Second line contains an integer non-negative number B — the number of days of walking down the hill (A + B + 1 = N, 1 ≤ N ≤ 100 000).


-----Output-----

Output N space-separated distinct integers from 1 to N inclusive, denoting possible heights of the stops in order of visiting.


-----Examples-----
Input
0
1

Output
2 1 

Input
2
1
Output
1 3 4 2

Difficulty: EASY

Solutions:
from sys import stdout, stdin
import math
r = lambda : int(input())
ra = lambda : [*map(int, input().split())]
raw = lambda : [*stdin.readline()]
out = lambda a: stdout.write(''.join(a))
a = r()
b = r()
n = a + b + 1
p = [str(i + 1) + ' ' for i in range(1, n)]
res = []
if (a or b) == 0:
	out('1')
else:
	if a == 0:
		res = p[0:b][::-1] + ['1']
	elif b == 0:
		res = ['1 '] + p[0:n]
	else:
		res = p[n - a - 2:n] + p[0:n - a - 2][::-1] + ['1']
	out(res)


n = int(input())
m = int(input())
s = [str(i) for i in range(n + m + 2 - (n + 1), n + m + 2)]
s1 = [str(i) for i in range(n + m + 2 - (n + 1) - 1, 0, -1)]
s.extend(s1)
print(' '.join(s))


import sys
import math
get_string = lambda : sys.stdin.readline().strip()
get_int_list = lambda : list(map(int, sys.stdin.readline().strip().split()))
get_int = lambda : int(sys.stdin.readline())
pt = lambda x: sys.stdout.write(str(x) + '\n')
n = get_int()
m = get_int()
lst = list(range(1, n + m + 2))
print(' '.join(map(str, lst[-n - 1:])) + ' ' + ' '.join(map(str, reversed(lst[:m]))))


a = int(input())
b = int(input())
c = ''
if a != 0:
	for x in range(1, a + 2):
		c += str(b + x) + ' '
else:
	c += str(b + 1) + ' '
if b != 0:
	for x in range(1, b + 1):
		c += str(b + 1 - x) + ' '
print(c.strip())


(A, B) = (int(input()), int(input()))
print(*range(B + 1, A + B + 2), *reversed(range(1, B + 1)))


(a, b) = (int(input()), int(input()))
print(*[*range(b + 1, a + b + 2), *range(b, 0, -1)])


n = int(input())
m = int(input())
for i in range(m + 1, m + n + 2):
	print(i, end=' ')
for i in range(m, 0, -1):
	print(i, end=' ')


from collections import deque, defaultdict, Counter
from itertools import product, groupby, permutations, combinations
from math import gcd, floor, inf, log2, sqrt, log10
from bisect import bisect_right, bisect_left
from statistics import mode
from string import ascii_uppercase
up = int(input())
down = int(input())
total = up + down + 1
arr = [i for i in range(1, total + 1)][::-1]
beg = arr[:up + 1][::-1]
end = arr[up + 1:]
ans = beg + end
print(*ans)


a = int(input())
b = int(input())
n = a + b + 1
print(' '.join(map(str, list(range(n - a, n + 1)) + list(range(1, n - a))[::-1])))


a = int(input())
b = int(input())
n = b + 1
ans = str(n) + ' '
for i in range(a):
	n += 1
	ans += str(n) + ' '
n = b + 1
for i in range(b):
	n -= 1
	ans += str(n) + ' '
print(ans)


a = int(input())
b = int(input())
n = a + b + 1
L = list(range(n - a, n + 1))
for item in L:
	print(item, end=' ')
x = n - a - 1
while x > 0:
	print(x, end=' ')
	x -= 1


a = int(input())
b = int(input())
tot = a + b + 1
x = b + 1
s = ''
for i in range(x, tot + 1):
	s += str(i)
	s += ' '
for I in range(b, 0, -1):
	s += str(I)
	s += ' '
print(s)


a = int(input())
b = int(input())
arr1 = [i for i in range(b + 1, a + b + 2)]
arr2 = [j + 1 for j in reversed(range(b))]
arr = arr1 + arr2
print(' '.join(map(str, arr)))


U = int(input())
D = int(input())
last = max(1, 1 + D)
next = last
print(last, end=' ')
while U > 0:
	last += 1
	print(last, end=' ')
	U -= 1
while D > 0:
	next -= 1
	print(next, end=' ')
	D -= 1


a = int(input())
b = int(input())
n = [str(i) for i in range(1, a + b + 2)]
if a == 0:
	print(' '.join(n[::-1]))
elif b == 0:
	print(' '.join(n))
else:
	print(' '.join(n[-a - 1:]) + ' ' + ' '.join(n[:b][::-1]))


import sys
A = int(sys.stdin.readline().strip())
B = int(sys.stdin.readline().strip())
N = A + B + 1
ans = [str(i) for i in range(B + 1, N + 1)] + [str(B - i) for i in range(0, B)]
print(' '.join(ans))


a = int(input())
b = int(input())
ans = [i for i in range(1, a + b + 2)]
i = 0
while i < b:
	i += 1
up = ans[i:]
down = ans[:i]
down.reverse()
print(*up + down)


a = int(input())
b = int(input())
n = a + b + 1
res = [x + 1 for x in range(n - a - 1, n)] + [x for x in range(n - a - 1, 0, -1)]
print(*res)