<image>

Input

The input contains two integers row, col (0 ≤ row, col ≤ 63), separated by a single space.

Output

Output "IN" or "OUT".

Examples

Input


0 0


Output


OUT


Input


27 0


Output


IN


Input


0 27


Output


OUT


Input


27 27


Output


IN
import java.io.*;
import java.util.*;
import java.math.*;
import java.awt.*;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;

 
public class main {
    public static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    public static PrintWriter pw = new PrintWriter(System.out);
    public static String line;
    public static StringTokenizer st, st2;
    public static ArrayList<ArrayList<Integer>> adjList;
    public static int[] dx = {-1, 0, 1, 0, -1, 1, 1, -1, 0};
    public static int[] dy = {0, 1, 0, -1, 1, 1, -1, -1, 0};
    public static int INF = 0x3f3f3f3f;
    public static int MOD = 1000000007;
    public static long LINF = 0x3f3f3f3f3f3f3f3fL;

    public static void main(String[] args) throws Exception {
        String image = "1111111111111111111111111101000000101011111111111111111111111111111111111111111111111100000101101010100010111111111111111111111111111111111111111111011011110100111011101000111111111111111111111111111111111111101000101000011110000010101000011111111111111111111111111111111100101010111100001111101011111100111111111111111111111111111111010110111001011010001000100000100110111111111111111111111111111001001001001100001110101111110110110001111111111111111111111110001110110110011110001000100010010010000001111111111111111111110001101001001100101110111110111100000000000011111111111111111110000000000110000110000000100000000000000000000111111111111111110000000000000000000000000000000000000000000000001111111111111110000000000000000000000000000000000000000000000000011111111111111000000000000000000000000000000000000000000000000001111111111111000000000000000000000000000000000000000000000000000011111111111000000000000000000000000000000000000000000000000000000111111111100000000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000000000000000000000000000111111100000000000000000000000000000000000000000000000000000000001111110000000000000000000000000000000000000000000000000000000011111111110000000000000101011100000000000000110111000000000000111111111111111000000001111111010000000000000001110110000000001111100111100111111100101100100100000000000000011101001110000011111000011100000011111111100111011010000000000011000110001110111110000000110000000001111011000001001000000000111001001101101111100000000011000000000001000111101101110000000110001111100010010000000000001100000000101101110100000101000000001110001000111011111000000000100000000011100010011110110110000001101110110110100010000000000000000000001011100011000010001010000100010001001011011100000000000000000000100011100001011010111101011011110000100000010000000000000000000011011011101101001001010111000100011011011111000000000000000000000100000010100001111100010111000100100001001000000000000000000000111011100010110000100011010001110110110001110000000000000000000010111011001001101111100100010010001001111100000000000000000000000001001001110100101011010111101011110100100000000000000000000000001110001100010110100100001010101010000111100000000000000000000000001110011011110011011100001110001110110100000000000000000000000001101101000101100100100100101110001110000000000000000000000000000000011101110000000111110000001011100000000000000000010000000000000011011100000000000101000001111011000000000000000011000000000000000000000000000011110000000000000000000000000000001100000000000000000000000000000101101000000000000000000000000000110000000000000000000000000000000011101000000000000000000000000011100000000000000000000000000000111011100000000000000000000000011110000000000000000000000000000000100000000000000000001100000001111100000001000000000000000000000111000000000000000010100000001111110000001111010000010000000000010110000000000011101110000000111111000000010111110011100101101011001010011101011010101000000011111110000000010001101011111100111001111111011111001110000000011111111100000000010100000100011110001100010000100001101000000011111111110000000001110111110100100010000101110110110100000000001111111111100000000001110100011110101110111101001001111000000001111111111111000000000000011100101110101001000001110010000000001111111111111100000000000111011000101110001110101100011000000000111111111111111000000000000100001000010010001110000111000000000111111111111111110000000000000010111101111110101111001000000000111111111111111111100000000000011001010010010000101000000000000111111111111111111111000000000000111101111000011110000000000000111111111111111111111111000000000000000001000000000000000000001111111111111111111111111110000000000000000000000000000000000001111111111111111111111111111110000000000000000000000000000000011111111111111111111111111111111100000000000000000000000000000011111111111111111111111111111111111110000000000000000000000001111111111111111111111111111111111111111110000000000000000000011111111111111111111111111111111111111111111111100000000000011111111111111111111111111";

        StringTokenizer st = new StringTokenizer(br.readLine());
        int r = Integer.parseInt(st.nextToken());
        int c = 63 - Integer.parseInt(st.nextToken());

        int index = r * 64 + c;
        System.out.println(image.charAt(index) - '0' == 1 ? "OUT" : "IN");

        pw.close();
        br.close();
    }
}

class Pair implements Comparable<Pair>{
    public int a, b;

    Pair(int _a, int _b){
        a = _a;
        b = _b;
    }
 
    public String toString(){
        return a + " " + b;
    }

    public int compareTo(Pair p){
        if (a != p.a) return a < p.a ? -1 : 1;
        if (b != p.b) return b < p.b ? -1 : 1;
        return 0;
    }
}