<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 main() {
  string s =
      "111111111111111111111111110000000000001111111111111111111111111111111111"
      "111111111111110000000000000000000011111111111111111111111111111111111111"
      "111100000000000000000000000011111111111111111111111111111111111110000000"
      "000000000000000000000001111111111111111111111111111111110000000000000000"
      "000000000000000011111111111111111111111111111100000000000000000000000000"
      "000000000011111111111111111111111111100000000000000000000100000000000000"
      "000111111111111111111111111000000000000011110000111101111000000000000111"
      "111111111111111111000000000000101000010010010100110000000000001111111111"
      "111111111000000000100111101011111101111010000000000000011111111111111111"
      "000000000111000011100010010000100001000000000000111111111111111000000000"
      "110001101011100011101000110111000000000001111111111111100000000010011100"
      "000100101011101001110000000000000111111111111100000000111100100101111011"
      "101011110001011100000000001111111111100000000001011011011101000010001001"
      "011111011100000000011111111110000000101100001000010001100011110001000001"
      "010000000001111111110000000011100111110111111100111001111110101100010000"
      "000011111110000000101010110101110010100110101101001110011111010000000111"
      "111000000011101110000000000011010000000000010000010111100000011111100000"
      "001010000000000000000111000000000000000000000100000001111100000001100000"
      "000000000000001000000000000000000000000000000011110000000000000000000000"
      "001110111000000000000000000000000000001110000000000000000000000000101110"
      "000000000000000000000000000000011000000000000000000000000000101101000000"
      "000000000000000000000001100000000000000000000000000000011110000000000000"
      "000000000000000110000000000000000110111100000101000000000001110110000000"
      "000000010000000000000000001110100000011111000000011101110000000000000000"
      "000000000000000011100011101001001001001101000101101100000000000000000000"
      "000001011011100011100001110110011110110011100000000000000000000000001111"
      "000010101010100001001011010001100011100000000000000000000000001001011110"
      "101111010110101001011100100100000000000000000000000001111100100010010001"
      "001111101100100110111010000000000000000000011100011011011100010110001000"
      "011010001110111000000000000000000000100100001001000111010001111100001010"
      "000001000000000000000000000111110110110001000111010100100101101110110110"
      "000000000000000000010000001000011110110101111010110100001110001000000000"
      "000000000001110110100100010001000010100010000110001110100000000000000000"
      "000010001011011011101100000011011011110010001110000000001000000000111110"
      "111000100011100000000101000001011101101000000001100000000000010010001111"
      "100011000000011101101111000100000000000110000000001111101101100100111000"
      "000000100100000110111100000000011000000011111011100011000110000000000010"
      "110111001111111110000001110000111110000011100101110000000000000001001001"
      "101001111111001111001111100000000011011100000000000000010111111100000000"
      "111111111111111000000000000111011000000000000001110101000000000000011111"
      "111110000000000000000000000000000000000000000000000000000000011111100000"
      "000000000000000000000000000000000000000000000000000001111111000000000000"
      "000000000000000000000000000000000000000000001111111110000000000000000000"
      "000000000000000000000000000000000001111111111000000000000000000000000000"
      "000000000000000000000000000111111111110000000000000000000000000000000000"
      "000000000000000000111111111111100000000000000000000000000000000000000000"
      "000000000111111111111110000000000000000000000000000000000000000000000000"
      "011111111111111100000000000000000000000000000000000000000000000011111111"
      "111111111000000000000000000001000000011000011000000000011111111111111111"
      "110000000000001111011111011101001100100101100011111111111111111111100000"
      "010010010001000100011110011011011100011111111111111111111111100011011011"
      "111101011100001100100100100111111111111111111111111111011001000001000100"
      "010110100111011010111111111111111111111111111111001111110101111100001111"
      "010101001111111111111111111111111111111110000101010000011110000101000101"
      "111111111111111111111111111111111111000101110111001011110110111111111111"
      "111111111111111111111111111111010001010101101000001111111111111111111111"
      "1111111111111111111111111101010000001011111111111111111111111111";
  int row, col;
  cin >> row >> col;
  cout << (s[(63 - row) * 64 + col] == '0' ? "IN" : "OUT");
}
