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.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.StringTokenizer;


public class Main {
	
	static String backwards(String w){
		String nw="";
		for(int i=w.length()-1;i>=0;--i){
			nw+=w.charAt(i);
		}
		return nw;
	}

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(br.readLine()," ");
		String a = st.nextToken();
		String b = st.nextToken();
		
		b=backwards(b);
		int numa=Integer.parseInt(a);
		int numb=Integer.parseInt(b);
		int sum=numa+numb;

		System.out.println(sum);

	}

}