<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;
vector<string> Darwing = {
    "                          8 8 888888 8                          ",
    "                      8 888 8 8 8  8 88888                      ",
    "                    888 8   8   88 8    8  8                    ",
    "                 8888 8 8 88888    8888 8 888 8                 ",
    "                88      8 8     8888    8 8 8 88                ",
    "              8  88 88888 888 888 8  8 88   8  8 8              ",
    "             888  8  8      8 8   8888  88 88 88 88             ",
    "           888888 88 88 888 888 888    88  8  8   888           ",
    "          888888888888    8     8   8 88  88 88 8  888          ",
    "         88888888888888888888 8888888  8888  8888888888         ",
    "        888888888888888888888888888888888888888888888888        ",
    "       88888888888888888888888888888888888888888888888888       ",
    "       88888888888888888888888888888888888888888888888888       ",
    "      8888888888888888888888888888888888888888888888888888      ",
    "     888888888888888888888888888888888888888888888888888888     ",
    "     888888888888888888888888888888888888888888888888888888     ",
    "    88888888888888888888888888888888888888888888888888888888    ",
    "   8888888888888888888888888888888888888888888888888888888888   ",
    "     88888888888888888888888888888888888888888888888888888888   ",
    "       888888888888   8  88888888888888   8 8 8888888888888     ",
    "  88     888888888  8   888888888888888 8       88888888        ",
    "  8888     88888   88 8   888888888888888 88 88  8 88       88  ",
    " 8888888     8   888  888  88888888888 8  8   88         888888 ",
    " 888888888     8  8  88 88   888888888 88 88888  8    888888888 ",
    " 888888888888 88 888     888  8888888   8  8    888 88888888888 ",
    " 888888888     8   888 888   88888888 8 88888 8   8  8 88888888 ",
    "888888888888 888 8  8  8   8  888888  8  8    88 888   888888888",
    "88888888888   8  8 88 888 888 8888 8 888 8888  888   8 888888888",
    "88888888888 888888 8888    8  8 8    8 8  8 8888   888 888888888",
    "88888888888     8  8  888 888   8 8 88 88 8  8   8  8  888888888",
    "888888888888 88 8888 88 888   8 888     8888 8 888888 8888888888",
    "88888888888   888  8  8   888 8  888 8888  8 888   8   888888888",
    "8888888888888     88 888 88 888 88     8  88 88  8   8 888888888",
    "88888888888888 88 8    8 8    8 8  8 8 88 8   88 88 888888888888",
    "888888888888    8888 8 8 8 8 8888 88 8  8 888  888   88888888888",
    "8888888888888 8  8   888   8888   8  88    8  88   8888888888888",
    "8888888888888888   888   8 88 88 88 88  8 888 8  8  888888888888",
    "888888888888888888   8 888888     8888888   8   8888888888888888",
    " 8888888888888888  8    88888 8 88888888888   8  88888888888888 ",
    " 888888888888888888888888888888    8888888888888888888888888888 ",
    " 888888888888888888888888888 8  8 88888888888888888888888888888 ",
    " 8888888888888888888888888 8   88888888888888888888888888888888 ",
    "  888888888888888888888888   8   88888888888888888888888888888  ",
    "  8888888  8888888888888888888 8888888888888888888888888888888  ",
    "   8888888 8 8888888888888888   888888888888888888888 8888888   ",
    "   8888888   8   88888888888  8 88888888888 88888 8    888888   ",
    "   8888888 8 8 8  8 8   88 8 88  8 8  8 88   88     8 8888888   ",
    "    88888888   88     8       88   88      8 8  888 88888888    ",
    "     8888888 8  8888 8888 888  888    888 88888 8 888888888     ",
    "     8888888888 8  8  8   8 8888 888 88 8     8   888888888     ",
    "      88888888    88 88 8    8   8 8    888 8   8888888888      ",
    "       888888888 88   88888 88 8 8   8 88   8888888888888       ",
    "       888888888  888  8 8   888   8 888  8   88888888888       ",
    "        888888888   8888   888 88 8888 8888 888888888888        ",
    "         888888888 88    8 8      8    8 88888888888888         ",
    "          888888888888 8 8888 88 88 8 88  888888888888          ",
    "           8888888888888    8888    8    888888888888           ",
    "             88888888888888888888 88888888888888888             ",
    "              888888888888888888888888888888888888              ",
    "                88888888888888888888888888888888                ",
    "                 888888888888888888888888888888                 ",
    "                    888888888888888888888888                    ",
    "                      88888888888888888888                      ",
    "                          888888888888                          "};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int x, y;
  cin >> x >> y;
  puts(Darwing[x][y] == '8' ? "IN" : "OUT");
}
