<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;
int a[64][64] = {
    {
        0,   0,   0,   0,   0, 0,   0, 0, 0, 0, 0,   0, 0,   0, 0,   0,
        0,   0,   0,   0,   0, 0,   0, 0, 0, 0, 255, 0, 255, 0, 255, 255,
        255, 255, 255, 255, 0, 255, 0, 0, 0, 0, 0,   0, 0,   0, 0,   0,
        0,   0,   0,   0,   0, 0,   0, 0, 0, 0, 0,   0, 0,   0, 0,   0,
    },
    {
        0,   0, 0, 0,   0, 0,   0,   0,   0,   0,   0,   0, 0,   0, 0,   0,
        0,   0, 0, 0,   0, 0,   255, 0,   255, 255, 255, 0, 255, 0, 255, 0,
        255, 0, 0, 255, 0, 255, 255, 255, 255, 255, 0,   0, 0,   0, 0,   0,
        0,   0, 0, 0,   0, 0,   0,   0,   0,   0,   0,   0, 0,   0, 0,   0,
    },
    {
        0,   0,   0, 0,   0,   0,   0,   0, 0,   0, 0, 0,   0,   0, 0, 0,
        0,   0,   0, 0,   255, 255, 255, 0, 255, 0, 0, 0,   255, 0, 0, 0,
        255, 255, 0, 255, 0,   0,   0,   0, 255, 0, 0, 255, 0,   0, 0, 0,
        0,   0,   0, 0,   0,   0,   0,   0, 0,   0, 0, 0,   0,   0, 0, 0,
    },
    {
        0, 0,   0,   0,   0,   0,   0,   0, 0,   0, 0,   0,   0,   0,   0,   0,
        0, 255, 255, 255, 255, 0,   255, 0, 255, 0, 255, 255, 255, 255, 255, 0,
        0, 0,   0,   255, 255, 255, 255, 0, 255, 0, 255, 255, 255, 0,   255, 0,
        0, 0,   0,   0,   0,   0,   0,   0, 0,   0, 0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0, 0, 0, 0, 0,   0, 0,   0, 0,   0, 0,   0,
        255, 255, 0,   0,   0, 0, 0, 0, 255, 0, 255, 0, 0,   0, 0,   0,
        255, 255, 255, 255, 0, 0, 0, 0, 255, 0, 255, 0, 255, 0, 255, 255,
        0,   0,   0,   0,   0, 0, 0, 0, 0,   0, 0,   0, 0,   0, 0,   0,
    },
    {
        0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0,   0,
        0,   255, 0,   0, 255, 255, 0,   255, 255, 255, 255, 255, 0,
        255, 255, 255, 0, 255, 255, 255, 0,   255, 0,   0,   255, 0,
        255, 255, 0,   0, 0,   255, 0,   0,   255, 0,   255, 0,   0,
        0,   0,   0,   0, 0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0, 0,   0,   0,   0,   0,   0, 0, 0,   0,   0, 0,   0,   255, 255, 255,
        0, 0,   255, 0,   0,   255, 0, 0, 0,   0,   0, 0,   255, 0,   255, 0,
        0, 0,   255, 255, 255, 255, 0, 0, 255, 255, 0, 255, 255, 0,   255, 255,
        0, 255, 255, 0,   0,   0,   0, 0, 0,   0,   0, 0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 255, 255,
        255, 255, 255, 255, 0,   255, 255, 0,   255, 255, 0, 255, 255,
        255, 0,   255, 255, 255, 0,   255, 255, 255, 0,   0, 0,   0,
        255, 255, 0,   0,   255, 0,   0,   255, 0,   0,   0, 255, 255,
        255, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,
        255, 0,   0,   0,   0,   0,   255, 0,   0,   0,   255, 0,   255,
        255, 0,   0,   255, 255, 0,   255, 255, 0,   255, 0,   0,   255,
        255, 255, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 0,   255, 255, 255, 255, 255, 255, 255, 0,   0,
        255, 255, 255, 255, 0,   0,   255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,
    },
    {
        0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 0,   0,   0,   255, 0,   0,   255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        0,   0,   0,   255, 0,   255, 0,   255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,   0,
    },
    {
        0,   0,   255, 255, 0,   0,   0,   0,   0,   255, 255, 255, 255,
        255, 255, 255, 255, 255, 0,   0,   255, 0,   0,   0,   255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        0,   255, 0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255,
        255, 255, 255, 255, 0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   255, 255, 255, 255, 0,   0,   0,   0,   0,   255, 255,
        255, 255, 255, 0,   0,   0,   255, 255, 0,   255, 0,   0,   0,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 0,   255, 255, 0,   255, 255, 0,   0,   255, 0,   255,
        255, 0,   0,   0,   0,   0,   0,   0,   255, 255, 0,   0,
    },
    {
        0,   255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,   0,
        255, 0,   0,   0,   255, 255, 255, 0,   0,   255, 255, 255, 0,
        0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
        255, 0,   0,   255, 0,   0,   0,   255, 255, 0,   0,   0,   0,
        0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 0,
    },
    {
        0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,   0,
        0,   0,   255, 0,   0,   255, 0,   0,   255, 255, 0,   255, 255,
        0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
        255, 255, 0,   255, 255, 255, 255, 255, 0,   0,   255, 0,   0,
        0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
    },
    {
        0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        0,   255, 255, 0,   255, 255, 255, 0,   0,   0,   0,   0,   255,
        255, 255, 0,   0,   255, 255, 255, 255, 255, 255, 255, 0,   0,
        0,   255, 0,   0,   255, 0,   0,   0,   0,   255, 255, 255, 0,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
    },
    {
        0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,   0,
        0, 0,   255, 0,   0,   0,   255, 255, 255, 0,   255, 255, 255,
        0, 0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 0,   255,
        0, 255, 255, 255, 255, 255, 0,   255, 0,   0,   0,   255, 0,
        0, 255, 0,   255, 255, 255, 255, 255, 255, 255, 255, 0,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
        255, 255, 255, 0,   255, 0,   0,   255, 0,   0,   255, 0,   0,
        0,   255, 0,   0,   255, 255, 255, 255, 255, 255, 0,   0,   255,
        0,   0,   255, 0,   0,   0,   0,   255, 255, 0,   255, 255, 255,
        0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,
        0,   255, 0,   0,   255, 0,   255, 255, 0,   255, 255, 255, 0,
        255, 255, 255, 0,   255, 255, 255, 255, 0,   255, 0,   255, 255,
        255, 0,   255, 255, 255, 255, 0,   0,   255, 255, 255, 0,   0,
        0,   255, 0,   255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   255,
        255, 255, 255, 255, 255, 0,   255, 255, 255, 255, 0,   0,   0,
        0,   255, 0,   0,   255, 0,   255, 0,   0,   0,   0,   255, 0,
        255, 0,   0,   255, 0,   255, 255, 255, 255, 0,   0,   0,   255,
        255, 255, 0,   255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,
        0,   0,   0,   255, 0,   0,   255, 0,   0,   255, 255, 255, 0,
        255, 255, 255, 0,   0,   0,   255, 0,   255, 0,   255, 255, 0,
        255, 255, 0,   255, 0,   0,   255, 0,   0,   0,   255, 0,   0,
        255, 0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
        255, 255, 0,   255, 255, 255, 255, 0,   255, 255, 0,   255, 255,
        255, 0,   0,   0,   255, 0,   255, 255, 255, 0,   0,   0,   0,
        0,   255, 255, 255, 255, 0,   255, 0,   255, 255, 255, 255, 255,
        255, 0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,
        0,   255, 255, 255, 0,   0,   255, 0,   0,   255, 0,   0,   0,
        255, 255, 255, 0,   255, 0,   0,   255, 255, 255, 0,   255, 255,
        255, 255, 0,   0,   255, 0,   255, 255, 255, 0,   0,   0,   255,
        0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        0,   0,   0,   0,   0,   255, 255, 0,   255, 255, 255, 0,   255,
        255, 0,   255, 255, 255, 0,   255, 255, 0,   0,   0,   0,   0,
        255, 0,   0,   255, 255, 0,   255, 255, 0,   0,   255, 0,   0,
        0,   255, 0,   255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 0,   255, 255, 0,   255, 0,   0,   0,   0,   255, 0,   255,
        0,   0,   0,   0,   255, 0,   255, 0,   0,   255, 0,   255, 0,
        255, 255, 0,   255, 0,   0,   0,   255, 255, 0,   255, 255, 0,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
        0,   0,   0,   255, 255, 255, 255, 0,   255, 0,   255, 0,   255,
        0,   255, 0,   255, 255, 255, 255, 0,   255, 255, 0,   255, 0,
        0,   255, 0,   255, 255, 255, 0,   0,   255, 255, 255, 0,   0,
        0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        0,   255, 0,   0,   255, 0,   0,   0,   255, 255, 255, 0,   0,
        0,   255, 255, 255, 255, 0,   0,   0,   255, 0,   0,   255, 255,
        0,   0,   0,   0,   255, 0,   0,   255, 255, 0,   0,   0,   255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 0,   0,   0,   255, 255, 255, 0,   0,   0,   255,
        0,   255, 255, 0,   255, 255, 0,   255, 255, 0,   255, 255, 0,
        0,   255, 0,   255, 255, 255, 0,   255, 0,   0,   255, 0,   0,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 0,   0,   0,   255, 0,   255, 255, 255,
        255, 255, 255, 0,   0,   0,   0,   0,   255, 255, 255, 255, 255,
        255, 255, 0,   0,   0,   255, 0,   0,   0,   255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
    },
    {
        0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 0,   0,   255, 0,   0,   0,   0,   255, 255,
        255, 255, 255, 0,   255, 0,   255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 0,   0,   0,   255, 0,   0,   255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
    },
    {
        0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 0,   0,   0,   0,   255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
    },
    {
        0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 0,   255, 0,   0,   255, 0,   255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
    },
    {
        0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        0,   255, 0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
    },
    {
        0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        0,   0,   0,   255, 0,   0,   0,   255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,
    },
    {
        0,   0,   255, 255, 255, 255, 255, 255, 255, 0,   0,   255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 0,   255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,
    },
    {
        0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 0,   255, 0,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 0,   0,   0,   255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 0,   255, 255, 255, 255, 255, 255, 255, 0,   0,   0,
    },
    {
        0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 0,   0,   0,
        255, 0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 0,   0,   255, 0,   255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 0,   255, 255, 255, 255, 255, 0,   255, 0,
        0,   0,   0,   255, 255, 255, 255, 255, 255, 0,   0,   0,
    },
    {
        0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 0, 255, 0,
        255, 0,   255, 0,   0,   255, 0,   255, 0,   0,   0, 255, 255,
        0,   255, 0,   255, 255, 0,   0,   255, 0,   255, 0, 0,   255,
        0,   255, 255, 0,   0,   0,   255, 255, 0,   0,   0, 0,   0,
        255, 0,   255, 255, 255, 255, 255, 255, 255, 0,   0, 0,
    },
    {
        0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 0,
        0,   0,   255, 255, 0,   0,   0,   0,   0,   255, 0,   0,   0,
        0,   0,   0,   0,   255, 255, 0,   0,   0,   255, 255, 0,   0,
        0,   0,   0,   0,   255, 0,   255, 0,   0,   255, 255, 255, 0,
        255, 255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 0,
        255, 0,   0,   255, 255, 255, 255, 0,   255, 255, 255, 255, 0,
        255, 255, 255, 0,   0,   255, 255, 255, 0,   0,   0,   0,   255,
        255, 255, 0,   255, 255, 255, 255, 255, 0,   255, 0,   255, 255,
        255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 0,   255, 0,   0,   255, 0,   0,   255, 0,   0,   0,
        255, 0,   255, 255, 255, 255, 0,   255, 255, 255, 0,   255, 255,
        0,   255, 0,   0,   0,   0,   0,   255, 0,   0,   0,   255, 255,
        255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255,
        255, 0,   0,   0,   0,   255, 255, 0,   255, 255, 0,   255, 0,
        0,   0,   0,   255, 0,   0,   0,   255, 0,   255, 0,   0,   0,
        0,   255, 255, 255, 0,   255, 0,   0,   0,   255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255,
        255, 255, 255, 0,   255, 255, 0,   0,   0,   255, 255, 255, 255,
        255, 0,   255, 255, 0,   255, 0,   255, 0,   0,   0,   255, 0,
        255, 255, 0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255,
        255, 255, 255, 0,   0,   255, 255, 255, 0,   0,   255, 0,   255,
        0,   0,   0,   255, 255, 255, 0,   0,   0,   255, 0,   255, 255,
        255, 0,   0,   255, 0,   0,   0,   255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0, 0,   0,   0,   255, 255, 255, 255, 255,
        255, 255, 255, 255, 0, 0,   0,   255, 255, 255, 255, 0,   0,
        0,   255, 255, 255, 0, 255, 255, 0,   255, 255, 255, 255, 0,
        255, 255, 255, 255, 0, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 0, 0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255,
        255, 255, 255, 255, 255, 0,   255, 255, 0,   0,   0,   0,   255,
        0,   255, 0,   0,   0,   0,   0,   0,   255, 0,   0,   0,   0,
        255, 0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   255, 0,   255,
        255, 255, 255, 0,   255, 255, 0,   255, 255, 0,   255, 0,   255,
        255, 0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,
        0,   0,   255, 255, 255, 255, 0,   0,   0,   0,   255, 0,   0,
        0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 0,   255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
        0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
        0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
        0,   0,   0,   0,   255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 0,   0,   0,   0,   0,
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
        0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 0,   0,   0,   0,   0,   0,   0,   0,
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
        0,   0,   0,   0,   0,   0,   0,   0,   0,   255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
        0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
    },
    {
        0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
        0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 255, 255, 255, 255, 255, 255,
        255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
        0,   0,   0,   0,   0,   0,   0, 0, 0, 0, 0,   0,   0,   0,   0,   0,
    },
};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int r, c;
  cin >> r >> c;
  if (a[r][c])
    cout << "IN\n";
  else
    cout << "OUT\n";
  return 0;
}
