<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;
ostream &operator<<(ostream &out, string str) {
  for (char c : str) out << c;
  return out;
}
template <class L, class R>
ostream &operator<<(ostream &out, pair<L, R> p) {
  return out << "(" << p.first << ", " << p.second << ")";
}
template <class T>
auto operator<<(ostream &out, T a) -> decltype(a.begin(), out) {
  out << "{";
  for (auto it = a.begin(); it != a.end(); it = next(it))
    out << (it != a.begin() ? ", " : "") << *it;
  return out << "}";
}
void dump() { cerr << "\n"; }
template <class T, class... Ts>
void dump(T a, Ts... x) {
  cerr << a << ", ";
  dump(x...);
}
template <class T>
int size(T &&a) {
  return a.size();
}
using LL = long long;
using PII = pair<int, int>;
vector<string> image = {
    "##########################.#.#......#.##########################",
    "######################.#...#.#.#.##.#.....######################",
    "####################...#.###.###..#.####.##.####################",
    "#################....#.#.#.....####....#.#...#.#################",
    "################..######.#.#####....####.#.#.#..################",
    "##############.##..#.....#...#...#.##.#..###.##.#.##############",
    "#############...##.##.######.#.###....##..#..#..#..#############",
    "###########......#..#..#...#...#...####..##.##.###...###########",
    "##########............####.#####.###.#..##..#..#.##...##########",
    "#########....................#.......##....##..........#########",
    "########................................................########",
    "#######..................................................#######",
    "#######..................................................#######",
    "######....................................................######",
    "#####......................................................#####",
    "#####......................................................#####",
    "####........................................................####",
    "###..........................................................###",
    "#####........................................................###",
    "#######............###.##..............###.#.#.............#####",
    "##..#####.........##.###...............#.#######........########",
    "##....#####.....###..#.###...............#..#..##.#..#######..##",
    "#.......#####.###...##...##...........#.##.###..#########......#",
    "#.........#####.##.##..#..###.........#..#.....##.####.........#",
    "#............#..#...#####...##.......###.##.####...#...........#",
    "#.........#####.###...#...###........#.#.....#.###.##.#........#",
    "............#...#.##.##.###.##......##.##.####..#...###.........",
    "...........###.##.#..#...#...#....#.#...#....##...###.#.........",
    "...........#......#....####.##.#.####.#.##.#....###...#.........",
    "...........#####.##.##...#...###.#.#..#..#.##.###.##.##.........",
    "............#..#....#..#...###.#...#####....#.#......#..........",
    "...........###...##.##.###...#.##...#....##.#...###.###.........",
    ".............#####..#...#..#...#..#####.##..#..##.###.#.........",
    "..............#..#.####.#.####.#.##.#.#..#.###..#..#............",
    "............####....#.#.#.#.#....#..#.##.#...##...###...........",
    ".............#.##.###...###....###.##..####.##..###.............",
    "................###...###.#..#..#..#..##.#...#.##.##............",
    "..................###.#......#####.......###.###................",
    "#................##.####.....#.#...........###.##..............#",
    "#..............................####............................#",
    "#...........................#.##.#.............................#",
    "#.........................#.###................................#",
    "##........................###.###.............................##",
    "##.......##...................#...............................##",
    "###.......#.#................###.....................#.......###",
    "###.......###.###...........##.#...........#.....#.####......###",
    "###.......#.#.#.##.#.###..#.#..##.#.##.#..###..#####.#.......###",
    "####........###..#####.#######..###..######.#.##...#........####",
    "#####.......#.##....#....#...##...####...#.....#.#.........#####",
    "#####..........#.##.##.###.#....#...#..#.#####.###.........#####",
    "######........####..#..#.####.###.#.####...#.###..........######",
    "#######.........#..###.....#..#.#.###.#..###.............#######",
    "#######.........##...##.#.###...###.#...##.###...........#######",
    "########.........###....###...#..#....#....#............########",
    "#########.........#..####.#.######.####.#..............#########",
    "##########............#.#....#..#..#.#..##............##########",
    "###########.............####....####.####............###########",
    "#############....................#.................#############",
    "##############....................................##############",
    "################................................################",
    "#################..............................#################",
    "####################........................####################",
    "######################....................######################",
    "##########################............##########################"};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int r, c;
  cin >> r >> c;
  cout << (image[r][c] == '#' ? "OUT" : "IN") << "\n";
}
