<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>
void proc() {
  std::string s[] = {
      "                          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 ",
      " 00000000000 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",
      "00000000000000000  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 i, j;
  std::cin >> i >> j;
  std::cout << (s[i][j] == '0' ? "IN" : "OUT") << std::endl;
}
int main() {
  std::cin.tie(0);
  std::cin.sync_with_stdio(false);
  int t = 1;
  while (t--) proc();
  return 0;
}
