<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.util.Scanner;

public class JordanSmiley {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String[] str =
                {"..........................#.#.######.#..........................",
                        "......................#.###.#.#.#..#.#####......................",
                        "....................###.#...#...##.#....#..#....................",
                        ".................####.#.#.#####....####.#.###.#.................",
                        "................##......#.#.....####....#.#.#.##................",
                        "..............#..##.#####.###.###.#..#.##...#..#.#..............",
                        ".............###..#..#......#.#...####..##.##.##.##.............",
                        "...........######.##.##.###.###.###....##..#..#...###...........",
                        "..........############....#.....#...#.##..##.##.#..###..........",
                        ".........####################.#######..####..##########.........",
                        "........################################################........",
                        ".......##################################################.......",
                        ".......##################################################.......",
                        "......####################################################......",
                        ".....######################################################.....",
                        ".....######################################################.....",
                        "....########################################################....",
                        "...##########################################################...",
                        ".....########################################################...",
                        ".......############...#..##############...#.#.#############.....",
                        "..##.....#########..#...###############.#.......########........",
                        "..####.....#####...##.#...###############.##.##..#.##.......##..",
                        ".#######.....#...###..###..###########.#..#...##.........######.",
                        ".#########.....#..#..##.##...#########.##.#####..#....#########.",
                        ".############.##.###.....###..#######...#..#....###.###########.",
                        ".#########.....#...###.###...########.#.#####.#...#..#.########.",
                        "############.###.#..#..#...#..######..#..#....##.###...#########",
                        "###########...#..#.##.###.###.####.#.###.####..###...#.#########",
                        "###########.######.####....#..#.#....#.#..#.####...###.#########",
                        "###########.....#..#..###.###...#.#.##.##.#..#...#..#..#########",
                        "############.##.####.##.###...#.###.....####.#.######.##########",
                        "###########...###..#..#...###.#..###.####..#.###...#...#########",
                        "#############.....##.###.##.###.##.....#..##.##..#...#.#########",
                        "##############.##.#....#.#....#.#..#.#.##.#...##.##.############",
                        "############....####.#.#.#.#.####.##.#..#.###..###...###########",
                        "#############.#..#...###...####...#..##....#..##...#############",
                        "################...###...#.##.##.##.##..#.###.#..#..############",
                        "##################...#.######.....#######...#...################",
                        ".################..#....#####.#.###########...#..##############.",
                        ".##############################....############################.",
                        ".###########################.#..#.#############################.",
                        ".#########################.#...################################.",
                        "..########################...#...#############################..",
                        "..#######..###################.###############################..",
                        "...#######.#.################...#####################.#######...",
                        "...#######...#...###########..#.###########.#####.#....######...",
                        "...#######.#.#.#..#.#...##.#.##..#.#..#.##...##.....#.#######...",
                        "....########...##.....#.......##...##......#.#..###.########....",
                        ".....#######.#..####.####.###..###....###.#####.#.#########.....",
                        ".....##########.#..#..#...#.####.###.##.#.....#...#########.....",
                        "......########....##.##.#....#...#.#....###.#...##########......",
                        ".......#########.##...#####.##.#.#...#.##...#############.......",
                        ".......#########..###..#.#...###...#.###..#...###########.......",
                        "........#########...####...###.##.####.####.############........",
                        ".........#########.##....#.#......#....#.##############.........",
                        "..........############.#.####.##.##.#.##..############..........",
                        "...........#############....####....#....############...........",
                        ".............####################.#################.............",
                        "..............####################################..............",
                        "................################################................",
                        ".................##############################.................",
                        "....................########################....................",
                        "......................####################......................",
                        "..........................############.........................."};
        int a = in.nextInt();
        int b = in.nextInt();

        String check1 = str[a];
        if (check1.charAt(b) == '#') {
            System.out.println("IN");
        } else {
            System.out.println("OUT");
        }

    }
}

