<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() {
  vector<int> image = {
      0x00, 0x00, 0x00, 0x2b, 0xf4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xea,
      0x97, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x88, 0xd0, 0x90, 0x00, 0x00,
      0x00, 0x00, 0x7a, 0xbe, 0x1e, 0xba, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xa0,
      0xf0, 0xab, 0x00, 0x00, 0x00, 0x02, 0x6f, 0xbb, 0xa5, 0x89, 0x40, 0x00,
      0x00, 0x07, 0x24, 0x0a, 0x3c, 0xdb, 0x60, 0x00, 0x00, 0x1f, 0xb6, 0xee,
      0xe1, 0x92, 0x38, 0x00, 0x00, 0x3f, 0xfc, 0x20, 0x8b, 0x36, 0x9c, 0x00,
      0x00, 0x7f, 0xff, 0xfb, 0xf9, 0xe7, 0xfe, 0x00, 0x00, 0xff, 0xff, 0xff,
      0xff, 0xff, 0xff, 0x00, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80,
      0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x03, 0xff, 0xff, 0xff,
      0xff, 0xff, 0xff, 0xc0, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0,
      0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x0f, 0xff, 0xff, 0xff,
      0xff, 0xff, 0xff, 0xf0, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8,
      0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x01, 0xff, 0xe2, 0x7f,
      0xfe, 0x2b, 0xff, 0xe0, 0x30, 0x7f, 0xc8, 0xff, 0xfe, 0x80, 0xff, 0x00,
      0x3c, 0x1f, 0x1a, 0x3f, 0xff, 0xb6, 0x58, 0x0c, 0x7f, 0x04, 0x73, 0x9f,
      0xfd, 0x23, 0x00, 0x7e, 0x7f, 0xc1, 0x26, 0xc7, 0xfd, 0xbe, 0x43, 0xfe,
      0x7f, 0xfb, 0x70, 0x73, 0xf8, 0x90, 0xef, 0xfe, 0x7f, 0xc1, 0x1d, 0xc7,
      0xfa, 0xfa, 0x25, 0xfe, 0xff, 0xf7, 0x49, 0x13, 0xf2, 0x43, 0x71, 0xff,
      0xff, 0xe2, 0x5b, 0xbb, 0xd7, 0x79, 0xc5, 0xff, 0xff, 0xef, 0xde, 0x12,
      0x85, 0x2f, 0x1d, 0xff, 0xff, 0xe0, 0x93, 0xb8, 0xad, 0xa4, 0x49, 0xff,
      0xff, 0xf6, 0xf6, 0xe2, 0xe0, 0xf5, 0xfb, 0xff, 0xff, 0xe3, 0x92, 0x3a,
      0x77, 0x97, 0x11, 0xff, 0xff, 0xf8, 0x37, 0x6e, 0xc1, 0x36, 0x45, 0xff,
      0xff, 0xfd, 0xa1, 0x42, 0x95, 0xa3, 0x6f, 0xff, 0xff, 0xf0, 0xf5, 0x57,
      0xb4, 0xb9, 0xc7, 0xff, 0xff, 0xfa, 0x47, 0x1e, 0x26, 0x13, 0x1f, 0xff,
      0xff, 0xff, 0x1c, 0x5b, 0x6c, 0xba, 0x4f, 0xff, 0xff, 0xff, 0xc5, 0xf8,
      0x3f, 0x88, 0xff, 0xff, 0x7f, 0xff, 0x90, 0xfa, 0xff, 0xe2, 0x7f, 0xfe,
      0x7f, 0xff, 0xff, 0xfe, 0x1f, 0xff, 0xff, 0xfe, 0x7f, 0xff, 0xff, 0xf4,
      0xbf, 0xff, 0xff, 0xfe, 0x7f, 0xff, 0xff, 0xd1, 0xff, 0xff, 0xff, 0xfe,
      0x3f, 0xff, 0xff, 0xc4, 0x7f, 0xff, 0xff, 0xfc, 0x3f, 0x9f, 0xff, 0xfd,
      0xff, 0xff, 0xff, 0xfc, 0x1f, 0xd7, 0xff, 0xf8, 0xff, 0xff, 0xfb, 0xf8,
      0x1f, 0xc4, 0x7f, 0xf2, 0xff, 0xef, 0xa1, 0xf8, 0x1f, 0xd5, 0x28, 0xd6,
      0x52, 0xc6, 0x0b, 0xf8, 0x0f, 0xf1, 0x82, 0x03, 0x18, 0x14, 0xef, 0xf0,
      0x07, 0xf4, 0xf7, 0xb9, 0xc3, 0xbe, 0xbf, 0xe0, 0x07, 0xfe, 0x92, 0x2f,
      0x76, 0x82, 0x3f, 0xe0, 0x03, 0xfc, 0x36, 0x84, 0x50, 0xe8, 0xff, 0xc0,
      0x01, 0xff, 0x63, 0xed, 0x45, 0x8f, 0xff, 0x80, 0x01, 0xff, 0x39, 0x47,
      0x17, 0x23, 0xff, 0x80, 0x00, 0xff, 0x8f, 0x1d, 0xbd, 0xef, 0xff, 0x00,
      0x00, 0x7f, 0xd8, 0x50, 0x21, 0x7f, 0xfe, 0x00, 0x00, 0x3f, 0xfd, 0x7b,
      0x6b, 0x3f, 0xfc, 0x00, 0x00, 0x1f, 0xff, 0x0f, 0x08, 0x7f, 0xf8, 0x00,
      0x00, 0x07, 0xff, 0xff, 0xbf, 0xff, 0xe0, 0x00, 0x00, 0x03, 0xff, 0xff,
      0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
      0x00, 0x00, 0x7f, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xff,
      0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00,
      0x00, 0x00, 0x00, 0x3f, 0xfc, 0x00, 0x00, 0x00,
  };
  vector<int> a;
  for (int i : image) {
    bitset<8> bs(i);
    for (int j = 7; j >= 0; --j) a.emplace_back(bs[j]);
  }
  int x, y;
  cin >> x >> y;
  int idx = x * 64 + y;
  cout << (a[idx] ? "IN" : "OUT");
}
