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:
//package hellolinux;

import java.util.Scanner;

public class HelloLinux {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String as = sc.next();
        String bs = sc.next();
        int[] a = new int[as.length()];
        int[] b = new int[bs.length()];
        int i;
        for (i = 0; i < as.length(); i++) {
            a[as.length() - 1 - i] = Integer.parseInt(Character.toString(as.charAt(i)));
        }
        for (i = 0; i < bs.length(); i++) {
            b[i] = Integer.parseInt(Character.toString(bs.charAt(i)));
        }
        int[] result = new int[Math.max(as.length(), bs.length())];
        for (i = 0; i < bs.length(); i++) {
            result[result.length - 1 - i] = b[i];
        }
        int left = 0;
        for (i = 0; i < as.length(); i++) {
            int nowleft = (result[result.length - 1 - i] + a[i] + left / 10);
            result[result.length - 1 - i] = (result[result.length - 1 - i] + a[i] + left / 10) % 10;
            left = nowleft;
        }
        boolean first = false;
        if(left>9){
            System.out.print(left/10);
            first=true;
        }
        for (i = 0; i < result.length; i++) {
            if (result[i] != 0 || first || result.length == 1) {
                first = true;
                System.out.print(result[i]);
            }
        }
    }
}