<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.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;

import javax.imageio.ImageIO;

public class Smiley {

	public static void main(String[] args) throws IOException {
//		BufferedImage res=ImageIO.read(new File("C:\\Users\\13dha\\Desktop\\smileBig.png"));
//		int width=res.getWidth(), height=res.getHeight();
//		double pixelWidth=width/64.0;
//		for (int y=0; y<64; y++) {
//			for (int x=0; x<64; x++) {
//				int centerX=(int)((x+0.5)*pixelWidth);
//				int centerY=(int)((y+0.5)*pixelWidth);
//				Color c=new Color(res.getRGB(centerX, centerY));
//				double brightness=c.getRed()/255.0;
//				if (brightness>0.5) {
//					System.out.print('#');
//				}
//				else {
//					System.out.print('.');
//				}
//			}
////			System.out.println();
//		}
		char[] ans="##########################.#.#......#.################################################.#...#.#.#.##.#.....##########################################...#.###.###..#.####.##.#####################################....#.#.#.....####....#.#...#.#################################..######.#.#####....####.#.#.#..##############################.##..#.....#...#...#.##.#..###.##.#.###########################...##.##.######.#.###....##..#..#..#..########################......#..#..#...#...#...####..##.##.###...#####################............####.#####.###.#..##..#..#.##...###################....................#.......##....##..........#################................................................###############..................................................##############..................................................#############....................................................###########......................................................##########......................................................#########........................................................#######..........................................................########........................................................##########............###.##..............###.#.#.............#######..#####.........##.###...............#.#######........##########....#####.....###..#.###...............#..#..##.#..#######..###.......#####.###...##...##...........#.##.###..#########......##.........#####.##.##..#..###.........#..#.....##.####.........##............#..#...#####...##.......###.##.####...#...........##.........#####.###...#...###........#.#.....#.###.##.#........#............#...#.##.##.###.##......##.##.####..#...###....................###.##.#..#...#...#....#.#...#....##...###.#....................#......#....####.##.#.####.#.##.#....###...#....................#####.##.##...#...###.#.#..#..#.##.###.##.##.....................#..#....#..#...###.#...#####....#.#......#.....................###...##.##.###...#.##...#....##.#...###.###......................#####..#...#..#...#..#####.##..#..##.###.#.......................#..#.####.#.####.#.##.#.#..#.###..#..#........................####....#.#.#.#.#....#..#.##.#...##...###........................#.##.###...###....###.##..####.##..###.............................###...###.#..#..#..#..##.#...#.##.##..............................###.#......#####.......###.###................#................##.####.....#.#...........###.##..............##..............................####............................##...........................#.##.#.............................##.........................#.###................................###........................###.###.............................####.......##...................#...............................#####.......#.#................###.....................#.......######.......###.###...........##.#...........#.....#.####......######.......#.#.#.##.#.###..#.#..##.#.##.#..###..#####.#.......#######........###..#####.#######..###..######.#.##...#........#########.......#.##....#....#...##...####...#.....#.#.........##########..........#.##.##.###.#....#...#..#.#####.###.........###########........####..#..#.####.###.#.####...#.###..........#############.........#..###.....#..#.#.###.#..###.............##############.........##...##.#.###...###.#...##.###...........###############.........###....###...#..#....#....#............#################.........#..####.#.######.####.#..............###################............#.#....#..#..#.#..##............#####################.............####....####.####............########################....................#.................###########################....................................##############################................................#################################..............................#####################################........................##########################################....................################################################............##########################".toCharArray();
		Scanner fs=new Scanner(System.in);
		int y=fs.nextInt(), x=fs.nextInt();
		int ind=y*64+x;
		System.out.println(ans[ind]=='#'?"OUT":"IN");
		
	}

}
