human
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
assistant
#Here is the Python program you requested.

from functools import reduce
import sys
# from PIL import Image

class Read:
    @staticmethod
    def string():
        return input()
 
    @staticmethod
    def int():
        return int(input())
 
    @staticmethod
    def list(delimiter=' '):
        return input().split(delimiter)
 
    @staticmethod
    def list_int(delimiter=' '):
        return list(map(int, input().split(delimiter)))

smile =...