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:
x,y = map(int, input().split())
dig0 = 0
y2 = 0
x2 = 0
orig_y = y
if 0 <= x <= 10**9 and 0 <= y <= 10**9:
        
    while y > 0:
        dig = y % 10
        y = y // 10
        dig0 += dig
        if dig0 > 0:
            y2 = y2 * 10 + dig
        else:
            pass
    
    print(x + y2)