<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 res =
      "111111111111111111111111110101000000101111111111111111111111111111111111"
      "111111111111110100010101011010000011111111111111111111111111111111111111"
      "111100010111011100101111011011111111111111111111111111111111111110000101"
      "010000011110000101000101111111111111111111111111111111110011111101011111"
      "000011110101010011111111111111111111111111111101100100000100010001011010"
      "011101101011111111111111111111111111100011011011111101011100001100100100"
      "100111111111111111111111111000000100100100010001000111100110110111000111"
      "111111111111111111000000000000111101111101110100110010010110001111111111"
      "111111111000000000000000000001000000011000011000000000011111111111111111"
      "000000000000000000000000000000000000000000000000111111111111111000000000"
      "000000000000000000000000000000000000000001111111111111100000000000000000"
      "000000000000000000000000000000000111111111111100000000000000000000000000"
      "000000000000000000000000001111111111100000000000000000000000000000000000"
      "000000000000000000011111111110000000000000000000000000000000000000000000"
      "000000000001111111110000000000000000000000000000000000000000000000000000"
      "000011111110000000000000000000000000000000000000000000000000000000000111"
      "111110000000000000000000000000000000000000000000000000000000011111111110"
      "000000000001110110000000000000011101010000000000000111111100111110000000"
      "001101110000000000000001011111110000000011111111110000111110000011100101"
      "110000000000000001001001101001111111001110000000111110111000110001100000"
      "000000101101110011111111100000011000000000111110110110010011100000000010"
      "010000011011110000000001100000000000010010001111100011000000011101101111"
      "000100000000000110000000001111101110001000111000000001010000010111011010"
      "000000010000000000001000101101101110110000001101101111001000111000000000"
      "000000000001110110100100010001000010100010000110001110100000000000000000"
      "000100000010000111101101011110101101000011100010000000000000000000011111"
      "011011000100011101010010010110111011011000000000000000000000100100001001"
      "000111010001111100001010000001000000000000000000000111000110110111000101"
      "100010000110100011101110000000000000000000000111110010001001000100111110"
      "110010011011101000000000000000000000001001011110101111010110101001011100"
      "100100000000000000000000000011110000101010101000010010110100011000111000"
      "000000000000000000000101101110001110000111011001111011001110000000000000"
      "000000000000000011100011101001001001001101000101101100000000000000000000"
      "000000000011101000000111110000000111011100000000000000001000000000000000"
      "011011110000010100000000000111011000000000000001100000000000000000000000"
      "000000011110000000000000000000000000000110000000000000000000000000001011"
      "010000000000000000000000000000011000000000000000000000000010111000000000"
      "000000000000000000000001110000000000000000000000001110111000000000000000"
      "000000000000001111000000011000000000000000000010000000000000000000000000"
      "000000111110000000101000000000000000011100000000000000000000010000000111"
      "111000000011101110000000000011010000000000010000010111100000011111100000"
      "001010101101011100101001101011010011100111110100000001111111000000001110"
      "011111011111110011100111111010110001000000001111111110000000101100001000"
      "010001100011110001000001010000000001111111111000000000010110110111010000"
      "100010010111110111000000000111111111110000000011110010010111101110101111"
      "000101110000000000111111111111100000000010011100000100101011101001110000"
      "000000000111111111111110000000001100011010111000111010001101110000000000"
      "011111111111111100000000011100001110001001000010000100000000000011111111"
      "111111111000000000100111101011111101111010000000000000011111111111111111"
      "110000000000001010000100100101001100000000000011111111111111111111100000"
      "000000001111000011110111100000000000011111111111111111111111100000000000"
      "000000000100000000000000000111111111111111111111111111000000000000000000"
      "000000000000000000111111111111111111111111111111000000000000000000000000"
      "000000001111111111111111111111111111111110000000000000000000000000000001"
      "111111111111111111111111111111111111000000000000000000000000111111111111"
      "111111111111111111111111111111000000000000000000001111111111111111111111"
      "1111111111111111111111111100000000000011111111111111111111111111";
  int x, y;
  cin >> x >> y;
  cout << (res[x * 64 + y] == '1' ? "OUT" : "IN") << endl;
}
