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.Scanner;

public class A1 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		int a1 = sc.nextInt(), a2 = sc.nextInt(), a3 = 0;
		String a = a2 + "";
		int b[] = new int[a.length()];
		for (int i = 0; i < a.length(); i++) {
			b[i] = Character.getNumericValue(a.charAt(i));
		}
		for (int i = 0; i < a.length(); i++) {
			a3 += b[i] * Math.pow(10, i);
		}
		System.out.println(a1 + a3);
	}
}