<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;
string input =
    "                                                    *** *** ************* "
    "***                                                                       "
    "                                 * * * * *           * * *                "
    "                                                                          "
    "      *** ***** * * * * *** ***** * * *********                           "
    "                                                             * * *     * "
    "* * * * * *   * * *         *                                             "
    "                                       ***** * * ***** * * *** * *** * * "
    "******* *** ***                                                           "
    "                     *     * * *     * *     *   * * *       * *   * *    "
    "                                                                      "
    "******* *** * * * ***** ***** ***** * ******* * * *** *** ***             "
    "                                                       *       * * * * * "
    "*         *       *       * * * *     * * *                               "
    "                                   *** ******* *** * * * ********* "
    "******* ******* * * * *** * * ***                                         "
    "                       *   *           * * * *         *       *       * "
    "* * * * * *   *                                                           "
    " *** *** *** ********* * * ***** ***** *** *** *** *** * *** * * *** * "
    "***                                                        * *   *   * *  "
    "       * *     * *     * * *   * * *   *     * *   * * * *                "
    "                                      *** *** *** * *** ******* ***** * * "
    "***** * ***** * *** *** *** * *** * * ***                                 "
    "                   *     *   * *   * *           * * * *     *       *   "
    "*   * *   * *   * *   *                                                "
    "*****     *** * *** * *** ******* * *** * ***** ******* *** *** * *** * "
    "*** *** *****                                            *           * *  "
    " * *   * *     * *     * *     *       *   *   * *   * *     *     *      "
    "                                    ***           ***   *** *** ***** * "
    "******* * ***** *** *** *** *** * *** * *** ***   ***                     "
    "                   *                       *       * *         * *     * "
    "* *   *   *   * *   * * *   *     *                                      "
    "***                       ********* ***** ***** ******* * *** ***** *** * "
    "  *** *****     ***                                    *                  "
    "                     * *             *   *       *   *                   "
    "*                                  ***                                    "
    "   ***             *****       *****                   ***                "
    "                *                                                         "
    "                                      *                              ***  "
    "                                                                          "
    "                   ***                            *                       "
    "                                                                          "
    "  *                            *                                          "
    "                                                         *                "
    "            *                                                             "
    "                                      *                          ***      "
    "                                                                          "
    "                   ***                        *                           "
    "                                                                          "
    "  *                      ***                                              "
    "                                                         ***              "
    "      *                                                                   "
    "                                        *                    *            "
    "                                                                          "
    "                     *                    *                               "
    "                                                                          "
    "  *                  ***                                                  "
    "                                                         ***              "
    "  *                                                                       "
    "                                        *              ***                "
    "                                                                          "
    "                     ***            *                                     "
    "                                                                          "
    "    *            *****                                                    "
    "                                                           *              "
    "  *                                                                       "
    "                                        *                *****            "
    "           ******* *****                           ******* *** ***        "
    "                 *****                    *                       *     * "
    "*   *                           *     * * * * *                         * "
    "             *****     *****                 *** *** *** ***              "
    "             * *** *** *** *****               *******              *   * "
    "        *                 *   * *     *                             * * * "
    "            *               *                    *   *****     *****      "
    "   ***** *** * *** *****                         *** * ***** ***** *** "
    "***   *******       *****        *       *         *         *     *   * "
    "* *     *                             * *   * *   *   * * *   *           "
    "  *   *      ***       *****     ***** ***** ***** *** * ***** ***        "
    "             *** *** * *** *** *** *** *****       *******   ***    *     "
    "        *         * *     *     *   *     *   *                     * * * "
    "  * *     *   *                 *           *    *             *****     "
    "*** *** *** *** *** *** *** *****                 * * *** * ******* *** "
    "***       *******           *    *                 *         * *   * *   "
    "*   * *   *     *                 * *   * *         *   * *       *       "
    "          *    *                 ******* *** * *** *** ***** *** ***** "
    "***             *** *** * *** ******* *** *** *****                 *    "
    "*                       * *   * *     *         *     *   *             * "
    "    * *   * *       *     * *                     *    *                 "
    "******* *** * ***** ***** ***** ***** ***             * *** * ***** *** "
    "*** ***** * *** ***               *    *                 *         * *    "
    " *     * *     *     *               * * * *         * * *     * *   * * "
    "*               *  ***                 ***** ***** * *** *** *** * ***** "
    "*** ***           *** * * *** ******* * *** *** *** *** *               "
    "****                       * *     * * *   * *   * *     * *   *          "
    " *   * *   * *       *   * *     *     *                 **               "
    "      *** *** *** * * *** * *** *** *** *** *       *** * *** *** * "
    "******* *** *** ***** *** *                 **                     *     "
    "* *   * * *   * *     * *     * *       * * * *     * *       *   *     * "
    "    * * *                 **                     * ***** ***** * *   *** "
    "***** *** *** * *** *** *** * *** * *** *** ***** ***** ***** * *         "
    "        **                     * *           * *       *       * *   * * "
    "* *       * * * *   * * *       *     *     * *                 **        "
    "             * ********* *** * ***** ***** *** *** *** * * *** *** * * "
    "*** * * *** ***** *** *** *** *                 **                     *  "
    "       * *   * *   *     * *     *     * * * * *   * *   * * *   * *     "
    "* *   * *   *                 **                     *** ***** * ***** * "
    "*** *** *** ***** *** * *** * ***** *** *** *** * * ***** ***** * ***     "
    "            **                       * *   * *       * *   * *     *     "
    "* * *     *         *       * * * *           * *                   **    "
    "                 *** *** *** ***** * *** * ***** ***** * * ***   *** "
    "******* ***** * * *** ******* *** ***                 **                  "
    "   *     *     *   * *   * *     *     * * *   *     * *       *   * * *  "
    "   *     * *     *                 **                     ***** ******* "
    "*** * *** *** *** *** *** * *** ***** ***** *** *** * *   *** *** *** *** "
    "*                 **                         *         *   * *     * *   "
    "* *     * *   *         * *   *   * *   *   * *     * * *                 "
    "**                         *** ***** * *** ***** * * *** ***** * * *** "
    "*** *** * *** * *** *** *** * *** *** ***                 **              "
    "             * *   * * *       * * * *       * * * *   * * * * *   * * *  "
    "   *   * *   * *                       **                       ***** *** "
    "*** *** *** * * * * *** *** *** * *** * * * *** * * ***** *** *** *** *** "
    "                    **                       *       *       * * * * * * "
    "* * * *       * *   * * *   * * *     *   *     *     *                   "
    "  **                       *** *** *** ***** * *** * *** * ***   ***** * "
    "*** * *** *** *** *** *** ***** *****                     **              "
    "           * * *   * *     *     *     *       *     * *   *   *       * "
    "*   *   *     *                         **                         *** "
    "*** *** ***** ***** *** *   *** *** *** * *** *** *** *** *** * *** *** "
    "***                       **                               *     *     *  "
    "   * * *   * *   * *   * *   *   * * *     * * *   * *   *                "
    "       **                               ***** ***** * ***** ***   * ***** "
    "*** ***   ***** * ***** * *** *** *****                       **          "
    "                         *     * * *           *         *             *  "
    "   * *     *                               ****                           "
    "    *** *** *** ***         * *** *****             ***** *** *** ***     "
    "                      ***  *                               *   * *       "
    "*         * * * *                     *     * *   *                       "
    "    *    *                               ***** *********         *** * "
    "*******               ******* *****                           *    *      "
    "                                                     *       *            "
    "                                           *    *                         "
    "                            *** *** *** ***                               "
    "                        *    *                                            "
    "         * * *   * * *                                                    "
    "     *    *                                                 *** * *** *** "
    "***                                                         *    *        "
    "                                         * * *     *                      "
    "                                         *    ***                         "
    "                      * *** *** *****                                     "
    "                    ***      *                                            "
    "   *     * *     *                                                        "
    " *        *             *****                             ******* * ***** "
    "                                                        *        *        "
    "     *   *                                     * *                        "
    "                                     *        ***           *** * ***     "
    "                          *** ***                                         "
    "***             ***          *             * * * *                        "
    "       *     *                                         * *             *  "
    "          *             * *** * *******                     *** *** *     "
    "                ***         *** ***** ***           *            *        "
    "     *     * *     *                     *   * * *                     * "
    "*         * * *       *           *            *             * *** * * "
    "*** *** *** *******   *** * *** * *** *** ***** ***   *** ***   ***** *** "
    "*** ***           *            *             * * * * * * *   * * * *     "
    "*   * * * *   *   * * * *   * * *   *     *   *         * * *             "
    "*            ***           *** * *** * *** *** *** *** ***** *** *** *** "
    "*** * *** *** ***** *** * *** ******* * ***           ***              *  "
    "             *     *   *         * *             *   *     *   *          "
    " * * * *   *     * *               *                ***             * *** "
    "*** ******* *** ***** ******* *** ***** ***** ******* *** *** *** * *** "
    "***             ***                  *             * * *   *       * *    "
    "   * *     *   *     *       *     * *         * * * *                 *  "
    "                  *             *** *** * ***** * *** ***** * *** ***** "
    "*** ***** *** *** * ********* * *** *                 *                   "
    " *                   * * *   * *   * *     * * *       * *     * *   * * "
    "*         * *     *                 *                    ***              "
    " *** *** *** * *** * *** *** *** ***** * *** * ***** * ***** *** *** "
    "*****               ***                      *               *       *   "
    "* *   * * *       * *     * * * *       *     * * *     *                 "
    "  *                        ***             ***** *** *** *** *** ***** "
    "*** * *** * * *** *** *** ***** * *******                 ***             "
    "             *                 * *   *     *         * *   * * * * *     "
    "* * *   *     *                         *                            *    "
    "             * *** ***** *** *** *** *** *** * *** *** * *** *** *** "
    "*****                     *                            *                 "
    "*   *     *   * * * *     *     *     * * *     *   * *     *             "
    "        *                            ***               *** ***** ***** * "
    "*** ***** *** *** *** *** *** ***** * *****                   ***         "
    "                     *                 *     *       *     *     * *   * "
    "*       * *       * *                       *                             "
    "   ***               *** *** ******* *** * ***** ***** * ******* * ***   "
    "***                     ***                                  *            "
    "     * *   *       * * * *           * *       * * *                      "
    "     *                                    ***               ***   *** *** "
    "* *** *** ***** *** * *** *** * ***                       ***             "
    "                         *                       * * * *       * *   * *  "
    " * * * *   *   *                       *                                  "
    "      ***                     *** * ******* ***   * ***** * * ***** ***   "
    "                  ***                                          *          "
    "               *       *       *       * *       *                       "
    "*                                            *****                     "
    "*********       *** ***** *********                   *****               "
    "                                 *                                       "
    "* *                                 *                                     "
    "               ***                                     ***                "
    "               ***                                                      * "
    "                                                                      *   "
    "                                                     *****                "
    "                                               *****                      "
    "                                      *                                   "
    "                            *                                             "
    "                   ***                                                    "
    "       ***                                                                "
    "  *                                                           *           "
    "                                                         *******          "
    "                                     *******                              "
    "                                            *                             "
    "                  *                                                       "
    "                         *****                                       "
    "*****                                                                     "
    "               *                                       *                  "
    "                                                                      "
    "*********                       *********                                 "
    "                                                               *          "
    "             *                                                    ";
const int n = 64 + 65;
const int m = 64 + 65;
bool is_white(int x, int y) {
  if (x == 0) return true;
  x--;
  return input[x * m + y] == ' ';
}
bool visited[n][m];
bool isout[n][m];
void out(int sx, int sy) {
  visited[sx][sy] = true;
  int g[4][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
  using pii = pair<int, int>;
  queue<pii> que;
  que.push({sx, sy});
  while (!que.empty()) {
    int x = que.front().first;
    int y = que.front().second;
    que.pop();
    isout[x][y] = true;
    for (int i = 0; i < 4; i++) {
      int nx = x + g[i][0];
      int ny = y + g[i][1];
      if (nx < 0 || nx >= n) continue;
      if (ny < 0 || ny >= n) continue;
      if (!is_white(nx, ny)) continue;
      if (visited[nx][ny]) continue;
      visited[nx][ny] = true;
      que.push({nx, ny});
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  out(0, 0);
  out(0, m - 1);
  out(n - 1, 0);
  out(n - 1, m - 1);
  int row, col;
  cin >> row >> col;
  int my_row = row << 1 | 1;
  int my_col = col << 1 | 1;
  my_row++;
  if (isout[my_row][my_col]) {
    cout << "OUT"
         << "\n";
  } else {
    cout << "IN"
         << "\n";
  }
  return 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
    }
  }
  return 0;
}
