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.io.*;
import java.lang.*;
public class gh
{
static int w=0;
public static void main(String arg[])throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String c=br.readLine();
    String r="";int n=0;
    String l="";
    for(int j=0;j<c.length();j++)
    {
    char e=c.charAt(j);
    if(e==' ')
    {
r=c.substring(0,j);
    l=c.substring(j+1,c.length());
    
    }}


    int x=Integer.parseInt(r);
    int y=Integer.parseInt(l);
    String st="";
    if(r.length()>=l.length())
    {
     n=r.length();
    int m=r.length()-l.length();
    for(int i=0;i<m;i++)
    st=st+"0";
    l=l+st;
    }
    if(r.length()<l.length())
    {
     n=l.length();
    int m=l.length()-r.length();
    for(int i=0;i<m;i++)
    st=st+"0";
    r=st+r;
    }
    int d=0;int u=0;String f="";
    for(int i=n-1;i>=0;i--)
    {
    int a=(int)r.charAt(i)-48;
    int b=(int)l.charAt(n-i-1)-48;
    w=((a+b)+d);
    
    d=0;
    if(w>9)
    {
    d=1;
    if(i!=0)
    w=w%10;
    }
    
String s= new Integer(w).toString();

   f =s+f;
    
    }
    int t=0;
    for(int j=0;j<f.length();j++)
    {
    if(f.charAt(j)!='0')
    {
    f=f.substring(j,f.length());
    break;
    }
    if(f.charAt(j)=='0')
    {
    t++;
    if(j==f.length()-1&&t==f.length()-1)
    f="0";
    }
    }
    
    
    System.out.println(f);
    }
    }