Problem: <image>

Input

The input contains two integers a1, a2 (0 ≤ ai ≤ 32), separated by a single space.

Output

Output a single integer.

Examples

Input

1 1


Output

0


Input

3 7


Output

0


Input

13 10


Output

1

Solution (in PYTHON):

Solution:
a1, a2=raw_input().split()
'''if len(a1)<len(a2):
	while len(a1)!=len(a2):
		a1='0'+a1
if len(a2)<len(a1):
	while len(a2)!=len(a1):
		a2='0'+a2'''

a2=list(a2)

a2.reverse()
'''q=0
c=''
for x in range(len(a1)):
	b=int(a1[x])+int(a2[x])
	
	if x>0:
		if int(a1[x-1])+int(a2[x-1])>=10:
			b+=1
	if x>1:
		if int(a1[x-1])+int(a2[x-1])==9 and int(a1[x-2])+int(a2[x-2])>=10:
			b+=1
	if b>=10 and x!=len(a1)-1:
		b=str(b)
		b=b[len(b)-1]
	b=str(b)
	if x==len(a1)-1:
		if len(b)>=2:
			b=list(b)
			b.reverse()
			b=''.join(b)
	c+=b

c=list(c)
c.reverse()
c=''.join(c)
c=int(c)
c=str(c)
print c '''

a2=''.join(a2)
a2=int(a2)

a1=int(a1)
print a2+a1