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.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String as = sc.next();
        String bs = sc.next();

        while (as.length() < bs.length()) {
            as = "0" + as;
        }
        while (bs.length() < as.length()) {
            bs = bs + "0";
        }
        List<Integer> ans = new ArrayList<>();
        int store = 0;
        for (int i = as.length() - 1; i >= 0; i--) {
            int aa = as.charAt(i) - '0';
            int bb = bs.charAt(bs.length() - i - 1) - '0';
            int s = aa + bb;
            if (store == 1) {
                s++;
                store = 0;
            }
            if (s >= 10) {
                s = s % 10;
                store = 1;
            }
            ans.add(0, s);
        }
        if (store == 1) {
            ans.add(0, 1);
        }
        boolean flag = true;
        for (int i = 0; i < ans.size(); i++) {
            if (!flag || ans.get(i) != 0) {
                System.out.print(ans.get(i));
                flag = false;
            }
        }
        if (flag)
            System.out.println("0");
    }
}