<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;
const int inf = 1e09 + 31;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  string s =
      "000000000000000000000000001111111111110000000000000000000000000000000000"
      "000000000000001111111111111111111100000000000000000000000000000000000000"
      "000011111111111111111111111100000000000000000000000000000000000001001111"
      "111111111111111111111110000000000000000000000000000000001100011111111111"
      "111111111111111100000000000000000000000000000011111001111111111111111111"
      "111111111100000000000000000000000000011111100011111111111111111111111111"
      "111000000000000000000000000111111111001111111111111111111111111111111000"
      "000000000000000000111111111100011111111111111111111111111111110000000000"
      "000000000111111111111001111111111111111111101111111111100000000000000000"
      "111111111111100010111111111111111110000111111111000000000000000111111111"
      "111111001010001011111111111110111111111110000000000000011111111111111100"
      "100010001101111111110000011111111000000000000011111111111111111000101010"
      "010011111111111011111111110000000000011111111111111111001011101100011111"
      "111110000101111111100000000000111111111111111101111010010100111111111011"
      "000111111110000000001001111111111111100000001111011001111111100111000111"
      "111100000001110011111111111110101011101000110101111111001001001111111000"
      "000101111111111111110011100000101110000111111110101110011111100000010001"
      "111111111110011011011111101010111111110011101011111110000011010011111111"
      "111011000111100000001001111111100000111111111100001001111111111111100001"
      "010010101011110111111100101001011111110001110101011111111111011100011111"
      "100100011111110111110100111111100000010001111111111000100111010011110101"
      "111111001001110111111110011111010111111111101011010101100000011111111110"
      "101100000111111001000001011111111111100111000010111011111111111000011011"
      "011111101101110111111111111111001001011110000111100111001101000101111111"
      "000101000111111111111110101111010011111111011110100001110111111111110111"
      "011111111111111000010101100111110001100011010101111111110001000100111111"
      "111111110100000010110001101100100111110011111111110101110111111111111111"
      "111110111111101100000111010010011111111110000100011111111111111111110000"
      "001010000101000111011101111111111110110111111111111111111111111011100010"
      "110111001000010001111111101010010111111111111111111100111000101001111110"
      "111100010011111110001111011111111111111111100111001111101111110001000111"
      "011111111111101001111111111111111111000101100111111111110110110001111111"
      "000100101111111111111111110001000000111111111101000001011111111111010110"
      "001111111111111100011101011111111111110001011100011111110101000010111111"
      "111111000111000100010111111111101100100101111110010001011111111111100111"
      "000111011100011111111100100111110111111001111111011111111110110111000111"
      "011011111111111011110100011111100100001001111111111000000111001000000011"
      "111111100010011011111110000110001111111111110111010111101110101111111100"
      "101011111111110000110011101111111110010111010011101110011111100110000011"
      "111111000001111000111111111100010101100000101101111111001011011111111000"
      "000000001111111111100101000011111000000111111111100101111111100000011011"
      "111111111111011101101001110110111111111011011111111110000000111001111111"
      "111100100011101101110001111111000001111111110000000000001111111111111000"
      "100100100010010111111101101111111110000000000110011111111111110110110110"
      "111011111111100100111111111000000000001101111111111110001110001001000111"
      "111111011111111111000000000000011111111111111100001010110001011111111000"
      "111111111000000000000001111111111111110010001110010111111111101111111111"
      "100000000000000011111111111110001101100011111111111100011111111100000000"
      "000000000111111111111001100000100111111111111011111111100000000000000000"
      "001111111111100111111111111111111111111111111100000000000000000000011111"
      "111100011111111111111111111111111111100000000000000000000000011111110011"
      "111111111111111111111111111000000000000000000000000000111111001111111111"
      "111111111111111111000000000000000000000000000000111000111111111111111111"
      "111111110000000000000000000000000000000001100111111111111111111111111110"
      "000000000000000000000000000000000000011111111111111111111111000000000000"
      "000000000000000000000000000000111111111111111111110000000000000000000000"
      "0000000000000000000000000011111111111100000000000000000000000000";
  int a, b;
  cin >> a >> b;
  if (s[(b * 64) + a] == '0')
    cout << "OUT";
  else
    cout << "IN";
}
