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:
import copy
import math
import sys

def solve(a, b):
    list_b=list(b)
    list_b.reverse()
    b_rev="".join(list_b)
    return str(int(a)+int(b_rev))

if __name__ == '__main__':

    FLAG_LOCAL = False

    if FLAG_LOCAL:
        str_in = __file__[:-2]+"in"
        f_in = open(str_in)
        f_out = open(str_in.rstrip('.in') + '.out', 'w')
    else:
        f_in = sys.stdin

    a,b = f_in.next().split()
    output = solve(a,b)

    if FLAG_LOCAL:
        f_out.write(output)


    print output,
    if FLAG_LOCAL:
        f_in.close()
        f_out.close()