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: interview

Starter code:

Solutions:
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())

res = list(range(b + 1, 0, -1))
res.extend(list(range(b + 2, a + b + 2)))
print(' '.join(map(str, res)))


A = int(input())
B = int(input())
N = A + B + 1
i = 0
c = [0] * N
while i < A:
    c[i] = str(i+1)
    i+=1
c[i] = str(N)
i += 1
while i < N:
    c[i] = str(N - i + A)
    i+=1
print(" ".join(c))
    


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())
N=A+B+1
print(*[x+1 if x<A else N+A-x for x in range(N)])

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)))

a = int(input())  # ������� ���� �����������
b = int(input())  # ������� ���� ����������
n = a+b+1  # �����
ans = [i for i in range(1, n+1)]
# �������: ������ ������� ��������� ��������, ���� b �� <= 0
# ���� ����� ������� ��������, ����� �������� ���������� ��������

if b % 2 == 1:
    ans[n//2-1] = ans[n//2-1] + ans[n//2]
    ans[n//2] = ans[n//2-1] - ans[n//2]
    ans[n//2-1] = ans[n//2-1] - ans[n//2]
    b -= 1
    
left = 0
right = n-1

while b > 0:
    ans[left] = ans[left]+ans[right]
    ans[right] = ans[left] - ans[right]
    ans[left] = ans[left] - ans[right]
    left += 1
    right -= 1
    b -= 2
    
for i in range(n-1):
    print(ans[i], end = ' ')
print(ans[n-1])

a = int(input())  # ������� ���� �����������
b = int(input())  # ������� ���� ����������
n = a+b+1  # �����
ans = [i for i in range(1, n+1)]  # ������ ������������ ������������������
# �������: ������ ������� ��������� ��������, ���� b �� <= 0
# ���� ����� ������� ��������, ����� �������� ���������� ��������

if b % 2 == 1:
    ans[n//2-1] = ans[n//2-1] + ans[n//2]
    ans[n//2] = ans[n//2-1] - ans[n//2]
    ans[n//2-1] = ans[n//2-1] - ans[n//2]
    b -= 1
    
left = 0
right = n-1

while b > 0:
    ans[left] = ans[left]+ans[right]
    ans[right] = ans[left] - ans[right]
    ans[left] = ans[left] - ans[right]
    left += 1
    right -= 1
    b -= 2
    
for i in range(n-1):
    print(ans[i], end = ' ')
print(ans[n-1])

a = int(input())
b = int(input())
for i in range(b + 1, a + b + 2):
	print(i, end=" ")
for i in range(b, 0, -1):
	print(i, end=" ")

a=int(input())
b=int(input())
n=a+b+1
if(b is 0):
    for i in range(n):
        print(i+1,end=' ')
elif(a is 0):
    for i in range(n):
        print(n-i,end=' ')
else:
    i=1
    print(i,end=' ')
    i=i+b+1
    while(i<=n):
        print(i,end=' ')
        i=i+1
    ct,i=1,1+b
    while(ct<=b):
        print(i,end=' ')
        i=i-1
        ct=ct+1


a = int(input())
b = int(input())
print(b+1,end=' ')
x = b
for i in range(b):
    print(x,end=' ')
    x-=1
x = b + 2
for i in range(a):
    print(x,end=' ')
    x+=1
               


#!/usr/bin/env python3

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)


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


A=int(input())
B=int(input())
N=A+B+1
print(*[x+1 if x<A else N+A-x for x in range(N)])

A=int(input())
B=int(input())
N=A+B+1
print(*[x+1 if x<A else N+A-x for x in range(N)])

A=int(input())

B=int(input())

N=A+B+1

print(*[x+1 if x<A else N+A-x for x in range(N)])



# Made By Mostafa_Khaled


def mountain(a, b):
    z = list()
    for i in range(1, a + 1):
        z.append(i)
    for i in range(a + b + 1, a, -1):
        z.append(i)
    return z


A = int(input())
B = int(input())
print(*mountain(A, B))


u = int(input())
d = int(input())
a = [0 for i in range(u + d + 1)]
for i in range(u):
    a[i] = i + 1
a[u] = d + u + 1
for i in range(u + 1, d + u + 1):
    a[i] = a[i - 1] - 1
print(*a)


mod = 1000000007
ii = lambda : int(input())
si = lambda : input()
dgl = lambda : list(map(int, input()))
f = lambda : map(int, input().split())
il = lambda : list(map(int, input().split()))
ls = lambda : list(input())
uh=ii()
dh=ii()
n=uh+dh+1
for i in range(uh):
    print(i+1,end=' ')
print(n,end=' ')
for i in range(n-1,n-1-dh,-1):
    print(i,end=' ')

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
    

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))

n=int(input())
m=int(input())
a=[0]*(m+n+1)
a[len(a)-m-1]=m+n+1
for i in range(n):
    a[i]=i+1
for j in range(len(a)-m,m+n+1):
    a[j]=len(a)+n-j
print(*a,sep=" ")

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, B = int(input()), int(input())

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