<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;
string t[64] = {
    "..........................0.0.000000.0..........................",
    "......................0.000.0.0.0..0.00000......................",
    "....................000.0...0...00.0....0..0....................",
    ".................0000.0.0.00000....0000.0.000.0.................",
    "................00......0.0.....0000....0.0.0.00................",
    "..............0..00.00000.000.000.0..0.00...0..0.0..............",
    ".............000..0..0......0.0...0000..00.00.00.00.............",
    "...........000000.00.00.000.000.000....00..0..0...000...........",
    "..........000000000000....0.....0...0.00..00.00.0..000..........",
    ".........00000000000000000000.0000000..0000..0000000000.........",
    "........000000000000000000000000000000000000000000000000........",
    ".......00000000000000000000000000000000000000000000000000.......",
    ".......00000000000000000000000000000000000000000000000000.......",
    "......0000000000000000000000000000000000000000000000000000......",
    ".....000000000000000000000000000000000000000000000000000000.....",
    ".....000000000000000000000000000000000000000000000000000000.....",
    "....00000000000000000000000000000000000000000000000000000000....",
    "...0000000000000000000000000000000000000000000000000000000000...",
    ".....00000000000000000000000000000000000000000000000000000000...",
    ".......000000000000...0..00000000000000...0.0.0000000000000.....",
    "..00.....000000000..0...000000000000000.0.......00000000........",
    "..0000.....00000...00.0...000000000000000.00.00..0.00.......00..",
    ".0000000.....0...000..000..00000000000.0..0...00.........000000.",
    ".000000000.....0..0..00.00...000000000.00.00000..0....000000000.",
    ".000000000000.00.000.....000..0000000...0..0....000.00000000000.",
    ".000000000.....0...000.000...00000000.0.00000.0...0..0.00000000.",
    "000000000000.000.0..0..0...0..000000..0..0....00.000...000000000",
    "00000000000...0..0.00.000.000.0000.0.000.0000..000...0.000000000",
    "00000000000.000000.0000....0..0.0....0.0..0.0000...000.000000000",
    "00000000000.....0..0..000.000...0.0.00.00.0..0...0..0..000000000",
    "000000000000.00.0000.00.000...0.000.....0000.0.000000.0000000000",
    "00000000000...000..0..0...000.0..000.0000..0.000...0...000000000",
    "0000000000000.....00.000.00.000.00.....0..00.00..0...0.000000000",
    "00000000000000.00.0....0.0....0.0..0.0.00.0...00.00.000000000000",
    "000000000000....0000.0.0.0.0.0000.00.0..0.000..000...00000000000",
    "0000000000000.0..0...000...0000...0..00....0..00...0000000000000",
    "0000000000000000...000...0.00.00.00.00..0.000.0..0..000000000000",
    "000000000000000000...0.000000.....0000000...0...0000000000000000",
    ".0000000000000000..0....00000.0.00000000000...0..00000000000000.",
    ".000000000000000000000000000000....0000000000000000000000000000.",
    ".000000000000000000000000000.0..0.00000000000000000000000000000.",
    ".0000000000000000000000000.0...00000000000000000000000000000000.",
    "..000000000000000000000000...0...00000000000000000000000000000..",
    "..0000000..0000000000000000000.0000000000000000000000000000000..",
    "...0000000.0.0000000000000000...000000000000000000000.0000000...",
    "...0000000...0...00000000000..0.00000000000.00000.0....000000...",
    "...0000000.0.0.0..0.0...00.0.00..0.0..0.00...00.....0.0000000...",
    "....00000000...00.....0.......00...00......0.0..000.00000000....",
    ".....0000000.0..0000.0000.000..000....000.00000.0.000000000.....",
    ".....0000000000.0..0..0...0.0000.000.00.0.....0...000000000.....",
    "......00000000....00.00.0....0...0.0....000.0...0000000000......",
    ".......000000000.00...00000.00.0.0...0.00...0000000000000.......",
    ".......000000000..000..0.0...000...0.000..0...00000000000.......",
    "........000000000...0000...000.00.0000.0000.000000000000........",
    ".........000000000.00....0.0......0....0.00000000000000.........",
    "..........000000000000.0.0000.00.00.0.00..000000000000..........",
    "...........0000000000000....0000....0....000000000000...........",
    ".............00000000000000000000.00000000000000000.............",
    "..............000000000000000000000000000000000000..............",
    "................00000000000000000000000000000000................",
    ".................000000000000000000000000000000.................",
    "....................000000000000000000000000....................",
    "......................00000000000000000000......................",
    "..........................000000000000.........................."};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int x, y;
  cin >> x >> y;
  if (t[x][y] == '0')
    cout << "IN\n";
  else
    cout << "OUT\n";
}
