<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
'''from PIL import Image
im = Image.open("smile.png")
d = im.size[0] / 64
for i in range(64):
    for j in range(64):
        if im.getpixel((j * d + d // 2, i * d + d // 2))[0] > 128:
            print('#', end='')
        else:
            print('.', end='')'''

s = '##########################.#.#......#.################################################.#...#.#.#.##.#.....##########################################...#.###.###..#.####.##.#####################################....#.#.#.....####....#.#...#.#################################..######.#.#####....####.#.#.#..##############################.##..#.....#...#...#.##.#..###.##.#.###########################...##.##.######.#.###....##..#..#..#..########################......#..#..#...#...#...####..##.##.###...#####################............####.#####.###.#..##..#..#.##...###################....................#.......##....##..........#################................................................###############..................................................##############..................................................#############....................................................###########......................................................##########......................................................#########........................................................#######..........................................................########........................................................##########............###.##..............###.#.#.............#######..#####.........##.###...............#.#######........##########....#####.....###..#.###...............#..#..##.#..#######..###.......#####.###...##...##...........#.##.###..#########......##.........#####.##.##..#..###.........#..#.....##.####.........##............#..#...#####...##.......###.##.####...#...........##.........#####.###...#...###........#.#.....#.###.##.#........#............#...#.##.##.###.##......##.##.####..#...###....................###.##.#..#...#...#....#.#...#....##...###.#....................#......#....####.##.#.####.#.##.#....###...#....................#####.##.##...#...###.#.#..#..#.##.###.##.##.....................#..#....#..#...###.#...#####....#.#......#.....................###...##.##.###...#.##...#....##.#...###.###......................#####..#...#..#...#..#####.##..#..##.###.#.......................#..#.####.#.####.#.##.#.#..#.###..#..#........................####....#.#.#.#.#....#..#.##.#...##...###........................#.##.###...###....###.##..####.##..###.............................###...###.#..#..#..#..##.#...#.##.##..............................###.#......#####.......###.###................#................##.####.....#.#...........###.##..............##..............................####............................##...........................#.##.#.............................##.........................#.###................................###........................###.###.............................####.......##...................#...............................#####.......#.#................###.....................#.......######.......###.###...........##.#...........#.....#.####......######.......#.#.#.##.#.###..#.#..##.#.##.#..###..#####.#.......#######........###..#####.#######..###..######.#.##...#........#########.......#.##....#....#...##...####...#.....#.#.........##########..........#.##.##.###.#....#...#..#.#####.###.........###########........####..#..#.####.###.#.####...#.###..........#############.........#..###.....#..#.#.###.#..###.............##############.........##...##.#.###...###.#...##.###...........###############.........###....###...#..#....#....#............#################.........#..####.#.######.####.#..............###################............#.#....#..#..#.#..##............#####################.............####....####.####............########################....................#.................###########################....................................##############################................................#################################..............................#####################################........................##########################################....................################################################............##########################'
x, y = [int(i) for i in input().split()]
if s[x * 64 + y] == '.':
    print('IN')
else:
    print('OUT')
