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

Solution:
import java.util.*;
import java.io.*;
public class contest
{
    public static void main(String args[]) throws IOException
    {
        try{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String ar[]=br.readLine().split(" ");
        String one="",two="";
        if(ar[0].length()>ar[1].length())
        {
            for(int i=0;i<ar[0].length()-ar[1].length();i++)
                two+="0";
            two=ar[1]+two;
            one+=ar[0];
        }
        else if(ar[1].length()>ar[0].length())
        {
            for(int i=0;i<ar[1].length()-ar[0].length();i++)
                one+="0";
            one+=ar[0];
            two+=ar[1];
        }
        else if(ar[0].length()==ar[1].length())
        {
            one+=ar[0];
            two+=ar[1];
        }
        StringBuilder sec=new StringBuilder(one);
        sec=sec.reverse();
        String rev_one=sec.toString();
        char a[]=rev_one.toCharArray();
        char b[]=two.toCharArray();
        String ans="";
        int carry=0;
        for(int i=0;i<Math.max(a.length,b.length);i++)
        {
            int sum=Integer.parseInt(""+a[i])+Integer.parseInt(""+b[i]);
            ans=((sum+carry)%10)+ans;
            carry=(sum+carry)/10;
        }
        if(carry>0)
            ans=carry+ans;
        System.out.println(Long.parseLong(ans));
    }
    catch(Exception e){}
}}