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:
def r(n):
    s = str(n)
    j = 0
    l = len(s)
    for i in xrange(l):
        j *= 10
        j += int(s[l - 1 - i])
    return j

def read():
    s = raw_input()
    i = s.index(' ')
    return int(s[:i]), int(s[i+1:])

a1,a2 = read()
print str(a1 + r(a2))