<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;
class EJordanSmiley {
 public:
  static constexpr long long kStressCount = 0;
  static void generateTest(ostream& test) {}
  void solve(istream& cin, ostream& cout) {
    string clown =
        "0000000000000000000000000010101111110100000000000000000000000000000000"
        "0000000000000000101110101010010111110000000000000000000000000000000000"
        "0000000011101000100011010000100100000000000000000000000000000000000001"
        "1110101011111000011110101110100000000000000000000000000000000011000000"
        "1010000011110000101010110000000000000000000000000000001001101111101110"
        "1110100101100010010100000000000000000000000000011100100100000010100011"
        "1100110110110110000000000000000000000001111110110110111011101110000110"
        "0100100011100000000000000000000011111111111100001000001000101100110110"
        "1001110000000000000000000111111111111111111110111111100111100111111111"
        "1000000000000000001111111111111111111111111111111111111111111111110000"
        "0000000000011111111111111111111111111111111111111111111111111000000000"
        "0000011111111111111111111111111111111111111111111111111000000000000011"
        "1111111111111111111111111111111111111111111111111100000000000111111111"
        "1111111111111111111111111111111111111111111110000000000111111111111111"
        "1111111111111111111111111111111111111110000000001111111111111111111111"
        "1111111111111111111111111111111111000000011111111111111111111111111111"
        "1111111111111111111111111111100000000111111111111111111111111111111111"
        "1111111111111111111111100000000001111111111110001001111111111111100010"
        "1011111111111110000000110000011111111100100011111111111111101000000011"
        "1111110000000000111100000111110001101000111111111111111011011001011000"
        "0000110001111111000001000111001110011111111111010010001100000000011111"
        "1001111111110000010010011011000111111111011011111001000011111111100111"
        "1111111110110111000001110011111110001001000011101111111111100111111111"
        "0000010001110111000111111110101111101000100101111111101111111111110111"
        "0100100100010011111100100100001101110001111111111111111111100010010110"
        "1110111011110101110111100111000101111111111111111111101111110111100001"
        "0010100001010010111100011101111111111111111111100000100100111011100010"
        "1011011010010001001001111111111111111111110110111101101110001011100000"
        "1111010111111011111111111111111111100011100100100011101001110111100101"
        "1100010001111111111111111111111000001101110110111011000001001101100100"
        "0101111111111111111111111101101000010100001010010101101000110110111111"
        "1111111111111111110000111101010101011110110100101110011100011111111111"
        "1111111111111010010001110001111000100110000100110001111111111111111111"
        "1111111111000111000101101101101100101110100100111111111111111111111111"
        "1111110001011111100000111111100010001111111111111111011111111111111110"
        "0100001111101011111111111000100111111111111110011111111111111111111111"
        "1111111000011111111111111111111111111110011111111111111111111111111101"
        "0010111111111111111111111111111110011111111111111111111111110100011111"
        "1111111111111111111111111110001111111111111111111111110001000111111111"
        "1111111111111111111100001111111001111111111111111111011111111111111111"
        "1111111111111100000111111101011111111111111110001111111111111111111110"
        "1111111000000111111100010001111111111100101111111111101111101000011111"
        "1000000111111101010100101000110101100101001011000110000010111111100000"
        "0011111111000110000010000000110001100000010100111011111111000000000111"
        "1111010011110111101110011100001110111110101111111110000000000111111111"
        "1010010010001011110111011010000010001111111110000000000011111111000011"
        "0110100001000101000011101000111111111100000000000001111111110110001111"
        "1011010100010110001111111111111000000000000001111111110011100101000111"
        "0001011100100011111111111000000000000000111111111000111100011101101111"
        "0111101111111111110000000000000000011111111101100001010000001000010111"
        "1111111111100000000000000000001111111111110101111011011010110011111111"
        "1111000000000000000000000111111111111100001111000010000111111111111000"
        "0000000000000000000001111111111111111111101111111111111111100000000000"
        "0000000000000000111111111111111111111111111111111111000000000000000000"
        "0000000000001111111111111111111111111111111100000000000000000000000000"
        "0000000111111111111111111111111111111000000000000000000000000000000000"
        "0000111111111111111111111111000000000000000000000000000000000000000000"
        "1111111111111111111100000000000000000000000000000000000000000000000011"
        "111111111100000000000000000000000000";
    long long x, y;
    cin >> x >> y;
    if (clown[64 * x + y] == '1')
      cout << "IN";
    else
      cout << "OUT";
  }
};
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  istream& in(cin);
  ostream& out(cout);
  out << fixed;
  out.precision(20);
  EJordanSmiley solver;
  solver.solve(in, out);
}
