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.io.*;
import java.util.*;

public class Problem implements Runnable {
    private void solve() throws IOException {
        int a=readInt();
        String b=readToken(),b2="";
        for (int i=b.length()-1;i>=0;i--)
            b2+=b.charAt(i);
        out.print(a+Integer.parseInt(b2));
    }
    public static void main(String[] args) throws IOException {
        new Problem().run();
    }

    private void init() throws FileNotFoundException {
        Locale.setDefault(Locale.US);
        String fileName = "";
        if (fileName.isEmpty()) {
            in = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
        } else {
            in = new BufferedReader(new FileReader(fileName + ".in"));
            out = new PrintWriter(fileName + ".out");
        }
    }

    public void run() {
        try {
            init();
            solve();
            out.close();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(-1);
        }
    }

    private static BufferedReader in;
    private static StringTokenizer tok;
    private static PrintWriter out;

    private static String readToken() throws IOException {
        while (tok == null || !tok.hasMoreTokens()) {
            tok = new StringTokenizer(in.readLine());
        }
        return tok.nextToken();
    }

    private static int readInt() throws IOException {
        return Integer.parseInt(readToken());
    }

    private static double readDouble() throws IOException {
        return Double.parseDouble(readToken());
    }

    private static long readLong() throws IOException {
        return Long.parseLong(readToken());
    }
}