<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 image;
  image =
      "000000000000000000000000001010111111010000000000000000000000000000000000"
      "000000000000001011101010100101111100000000000000000000000000000000000000"
      "000011101000100011010000100100000000000000000000000000000000000001111010"
      "101111100001111010111010000000000000000000000000000000001100000010100000"
      "111100001010101100000000000000000000000000000010011011111011101110100101"
      "100010010100000000000000000000000000011100100100000010100011110011011011"
      "011000000000000000000000000111111011011011101110111000011001001000111000"
      "000000000000000000111111111111000010000010001011001101101001110000000000"
      "000000000111111111111111111110111111100111100111111111100000000000000000"
      "111111111111111111111111111111111111111111111111000000000000000111111111"
      "111111111111111111111111111111111111111110000000000000011111111111111111"
      "111111111111111111111111111111111000000000000011111111111111111111111111"
      "111111111111111111111111110000000000011111111111111111111111111111111111"
      "111111111111111111100000000001111111111111111111111111111111111111111111"
      "111111111110000000001111111111111111111111111111111111111111111111111111"
      "111100000001111111111111111111111111111111111111111111111111111111111000"
      "000001111111111111111111111111111111111111111111111111111111100000000001"
      "111111111110001001111111111111100010101111111111111000000011000001111111"
      "110010001111111111111110100000001111111100000000001111000001111100011010"
      "001111111111111110110110010110000000110001111111000001000111001110011111"
      "111111010010001100000000011111100111111111000001001001101100011111111101"
      "101111100100001111111110011111111111101101110000011100111111100010010000"
      "111011111111111001111111110000010001110111000111111110101111101000100101"
      "111111101111111111110111010010010001001111110010010000110111000111111111"
      "111111111110001001011011101110111101011101111001110001011111111111111111"
      "111011111101111000010010100001010010111100011101111111111111111111100000"
      "100100111011100010101101101001000100100111111111111111111111011011110110"
      "111000101110000011110101111110111111111111111111111000111001001000111010"
      "011101111001011100010001111111111111111111111000001101110110111011000001"
      "001101100100010111111111111111111111110110100001010000101001010110100011"
      "011011111111111111111111111100001111010101010111101101001011100111000111"
      "111111111111111111111010010001110001111000100110000100110001111111111111"
      "111111111111111100011100010110110110110010111010010011111111111111111111"
      "111111111100010111111000001111111000100011111111111111110111111111111111"
      "100100001111101011111111111000100111111111111110011111111111111111111111"
      "111111100001111111111111111111111111111001111111111111111111111111110100"
      "101111111111111111111111111111100111111111111111111111111101000111111111"
      "111111111111111111111110001111111111111111111111110001000111111111111111"
      "111111111111110000111111100111111111111111111101111111111111111111111111"
      "111111000001111111010111111111111111100011111111111111111111101111111000"
      "000111111100010001111111111100101111111111101111101000011111100000011111"
      "110101010010100011010110010100101100011000001011111110000000111111110001"
      "100000100000001100011000000101001110111111110000000001111111010011110111"
      "101110011100001110111110101111111110000000000111111111101001001000101111"
      "011101101000001000111111111000000000001111111100001101101000010001010000"
      "111010001111111111000000000000011111111101100011111011010100010110001111"
      "111111111000000000000001111111110011100101000111000101110010001111111111"
      "100000000000000011111111100011110001110110111101111011111111111100000000"
      "000000000111111111011000010100000010000101111111111111100000000000000000"
      "001111111111110101111011011010110011111111111100000000000000000000011111"
      "111111110000111100001000011111111111100000000000000000000000011111111111"
      "111111111011111111111111111000000000000000000000000000111111111111111111"
      "111111111111111111000000000000000000000000000000111111111111111111111111"
      "111111110000000000000000000000000000000001111111111111111111111111111110"
      "000000000000000000000000000000000000111111111111111111111111000000000000"
      "000000000000000000000000000000111111111111111111110000000000000000000000"
      "0000000000000000000000000011111111111100000000000000000000000000";
  int m, n;
  cin >> m >> n;
  if (image[m * 64 + n] == '1') {
    cout << "IN" << endl;
  } else if (image[m * 64 + n] == '0') {
    cout << "OUT" << endl;
  }
  return 0;
}
