<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
#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
ll a, b, n, k;
static const char *image[] = {
    "..........................#.#.######.#..........................",
    "......................#.###.#.#.#..#.#####......................",
    "....................###.#...#...##.#....#..#....................",
    ".................####.#.#.#####....####.#.###.#.................",
    "................##......#.#.....####....#.#.#.##................",
    "..............#..##.#####.###.###.#..#.##...#..#.#..............",
    ".............###..#..#......#.#...####..##.##.##.##.............",
    "...........######.##.##.###.###.###....##..#..#...###...........",
    "..........############....#.....#...#.##..##.##.#..###..........",
    ".........####################.#######..####..##########.........",
    "........################################################........",
    ".......##################################################.......",
    ".......##################################################.......",
    "......####################################################......",
    ".....######################################################.....",
    ".....######################################################.....",
    "....########################################################....",
    "...##########################################################...",
    ".....########################################################...",
    ".......############...#..##############...#.#.#############.....",
    "..##.....#########..#...###############.#.......########........",
    "..####.....#####...##.#...###############.##.##..#.##.......##..",
    ".#######.....#...###..###..###########.#..#...##.........######.",
    ".#########.....#..#..##.##...#########.##.#####..#....#########.",
    ".############.##.###.....###..#######...#..#....###.###########.",
    ".#########.....#...###.###...########.#.#####.#...#..#.########.",
    "############.###.#..#..#...#..######..#..#....##.###...#########",
    "###########...#..#.##.###.###.####.#.###.####..###...#.#########",
    "###########.######.####....#..#.#....#.#..#.####...###.#########",
    "###########.....#..#..###.###...#.#.##.##.#..#...#..#..#########",
    "############.##.####.##.###...#.###.....####.#.######.##########",
    "###########...###..#..#...###.#..###.####..#.###...#...#########",
    "#############.....##.###.##.###.##.....#..##.##..#...#.#########",
    "##############.##.#....#.#....#.#..#.#.##.#...##.##.############",
    "############....####.#.#.#.#.####.##.#..#.###..###...###########",
    "#############.#..#...###...####...#..##....#..##...#############",
    "################...###...#.##.##.##.##..#.###.#..#..############",
    "##################...#.######.....#######...#...################",
    ".################..#....#####.#.###########...#..##############.",
    ".##############################....############################.",
    ".###########################.#..#.#############################.",
    ".#########################.#...################################.",
    "..########################...#...#############################..",
    "..#######..###################.###############################..",
    "...#######.#.################...#####################.#######...",
    "...#######...#...###########..#.###########.#####.#....######...",
    "...#######.#.#.#..#.#...##.#.##..#.#..#.##...##.....#.#######...",
    "....########...##.....#.......##...##......#.#..###.########....",
    ".....#######.#..####.####.###..###....###.#####.#.#########.....",
    ".....##########.#..#..#...#.####.###.##.#.....#...#########.....",
    "......########....##.##.#....#...#.#....###.#...##########......",
    ".......#########.##...#####.##.#.#...#.##...#############.......",
    ".......#########..###..#.#...###...#.###..#...###########.......",
    "........#########...####...###.##.####.####.############........",
    ".........#########.##....#.#......#....#.##############.........",
    "..........############.#.####.##.##.#.##..############..........",
    "...........#############....####....#....############...........",
    ".............####################.#################.............",
    "..............####################################..............",
    "................################################................",
    ".................##############################.................",
    "....................########################....................",
    "......................####################......................",
    "..........................############..........................",
};
int main() {
  const double w = 963;
  const double h = 964;
  ll x, y;
  cin >> x >> y;
  cout << (image[x][y] == '#' ? "IN\n" : "OUT\n");
}
