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:
//2012 AF A

import java.util.*;
import java.io.*;

public class Solution {
    public static void main(String args[]) {
        Scanner input = new Scanner(System.in);
        //int caseNum = stoi(input.nextLine());
        int caseNum = 1;
        for (int ks = 1; ks <= caseNum; ks++) {
            System.out.println(new Solution().solve(input));
        }
    }
    
    public long solve(Scanner scanner) {

        String[] rrr = scanner.nextLine().split("[ ]");

        long a = stol(rrr[0]);
        StringBuilder sb = new StringBuilder();
        sb.append(rrr[1]);
        long b = stol(sb.reverse().toString());




        return a+b;


    }

    /*
        - The following are helping method so pls do not do anything to them.
    
    */

    public static int[][] to2d(Scanner scanner, int m, int n){
        int[][] ans = new int[m][n];
        for(int i = 0;i<m;i++){
            String[] r = scanner.nextLine().split("[ ]");
            for(int j = 0;j<n;j++){
                ans[i][j] = stoi(r[j]);
            }
        }
        return ans;
    }

    public static int[] toArray(Scanner scanner, int m){
        int[] ans = new int[m];
        String[] r = scanner.nextLine().split("[ ]");
        for(int i = 0;i<m;i++){
            ans[i] = stoi(r[i]);
        }
        
        return ans;
    }

    public static void printArr(int[] a){
        for(int i = 0;i<a.length;i++){
            System.out.print(a[i]);
            if(i!=a.length-1){
                System.out.print(" ");
            }
        }
    }

    public static void print2d(int[][] a){
        for(int j=0;j<a.length;j++){
            for(int i = 0;i<a[j].length;i++){
                System.out.print(a[j][i]);
                if(i!=a[j].length-1){
                    System.out.print(" ");
                }
            }
            System.out.println(" ");
        }
    }

    public static int stoi(String s){
        return Integer.parseInt(s);
    }

    public static long stol(String s){
        return Long.parseLong(s);
    }
}