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
The above is tricky. Write me a correct solution in PYTHON3.
 ... Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.

def precomp():
    import sys
    sys.setrecursionlimit(10**7)

    from PIL import Image
    img = Image.open("img.png")
    N, M = img.size
    G = [[img.getpixel((x,y)) == (255,255,255) for y in range(M)] for x in range(N)]

    isOut = [[False for y in range(M)] for x in range(N)]
    def dfs(x, y):
        if not (0 <= x < N and 0 <= y < M): return
        if not G[x][y]: return
        if isOut[x][y]: return
        isOut[x][y] = True
        dfs(x-1, y)
        dfs(x+1, y)
        dfs(x, y-1)
        dfs(x, y+1)
    for x in [0,N-1]:
        for y in [0,M-1]:
            dfs(x,y)
    s = '\n'.join(
        ''.join(
            '1' if isOut[i*15+7][j*15+7] else '0'
            for j in range(64)
        )
        for i in range(64)
    )
    print(s)

#precomp()
INP =...