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 A {

    public void solve() throws IOException {
        int a = nextInt();
        int b = nextInt();
        int c = 0;
        while (b > 0) {
            c = c * 10 + (b % 10);
            b /= 10;
        }
        writer.println(a + c);
    }

    public static void main(String[] args) throws FileNotFoundException {
        new A().run();
    }

    BufferedReader reader;
    StringTokenizer tokenizer;
    PrintWriter writer;

    public void run() {
        try {
            long tbegin = System.currentTimeMillis();
            reader = new BufferedReader(new InputStreamReader(System.in));
            //reader = new BufferedReader(new InputStreamReader(new FileInputStream("input.txt")));
            tokenizer = null;
            writer = new PrintWriter(System.out);
            //writer = new PrintWriter(new FileOutputStream("output.txt"));
            solve();
            //reader.close();
            //System.out.println(System.currentTimeMillis() - tbegin + "ms");
            writer.close();
        } catch (Exception e) {
            e.printStackTrace();
            System.exit(1);
        }
    }

    int nextInt() throws IOException {
        return Integer.parseInt(nextToken());
    }

    long nextLong() throws IOException {
        return Long.parseLong(nextToken());
    }

    double nextDouble() throws IOException {
        return Double.parseDouble(nextToken());
    }

    String nextToken() throws IOException {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(reader.readLine());
        }
        return tokenizer.nextToken();
    }

}