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

Solution:
a,b=map (int, input().split())
c=b
k=m=0
while (c>0):
    c=c//10
    k+=1
for i in range(k,0,-1):
    m+=(b%10)*(10**(i-1))
    b=b//10
print(a+m)