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

public class cfAMysterious {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long n = in.nextInt();
        long m = in.nextInt();
        String ns = "" + n;
        String ms = "" + m;
        //while (ns.length() < ms.length()) ns = "0" + ns;
        //while (ms.length() < ns.length()) ms = "0" + ms;
        ms = reverse(ms);
        long nn = Long.parseLong(ns);
        long mm = Long.parseLong(ms);
        System.out.println(nn + mm);
    }

    private static String reverse(String ms) {
        if (ms.length() <= 1) return ms;
        return ms.substring(ms.length() - 1) + reverse(ms.substring(0,ms.length() - 1));
    }
}