<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
magic = "1111111111111111111111111101010000001011111111111111111111111111111111111111111111111101000101010110100000111111111111111111111111111111111111111111000101110111001011110110111111111111111111111111111111111111100001010100000111100001010001011111111111111111111111111111111100111111010111110000111101010100111111111111111111111111111111011001000001000100010110100111011010111111111111111111111111111000110110111111010111000011001001001001111111111111111111111110000001001001000100010001111001101101110001111111111111111111110000000000001111011111011101001100100101100011111111111111111110000000000000000000010000000110000110000000000111111111111111110000000000000000000000000000000000000000000000001111111111111110000000000000000000000000000000000000000000000000011111111111111000000000000000000000000000000000000000000000000001111111111111000000000000000000000000000000000000000000000000000011111111111000000000000000000000000000000000000000000000000000000111111111100000000000000000000000000000000000000000000000000000011111111100000000000000000000000000000000000000000000000000000000111111100000000000000000000000000000000000000000000000000000000001111111100000000000000000000000000000000000000000000000000000000111111111100000000000011101100000000000000111010100000000000001111111001111100000000011011100000000000000010111111100000000111111111100001111100000111001011100000000000000010010011010011111110011100000001111101110001100011000000000001011011100111111111000000110000000001111101101100100111000000000100100000110111100000000011000000000000100100011111000110000000111011011110001000000000001100000000011111011100010001110000000010100000101110110100000000100000000000010001011011011101100000011011011110010001110000000000000000000011101101001000100010000101000100001100011101000000000000000000001000000100001111011010111101011010000111000100000000000000000000111110110110001000111010100100101101110110110000000000000000000001001000010010001110100011111000010100000010000000000000000000001110001101101110001011000100001101000111011100000000000000000000001111100100010010001001111101100100110111010000000000000000000000010010111101011110101101010010111001001000000000000000000000000111100001010101010000100101101000110001110000000000000000000000001011011100011100001110110011110110011100000000000000000000000000000111000111010010010010011010001011011000000000000000000000000000000111010000001111100000001110111000000000000000010000000000000000110111100000101000000000001110110000000000000011000000000000000000000000000000111100000000000000000000000000001100000000000000000000000000010110100000000000000000000000000000110000000000000000000000000101110000000000000000000000000000000011100000000000000000000000011101110000000000000000000000000000011110000000110000000000000000000100000000000000000000000000000001111100000001010000000000000000111000000000000000000000100000001111110000000111011100000000000110100000000000100000101111000000111111000000010101011010111001010011010110100111001111101000000011111110000000011100111110111111100111001111110101100010000000011111111100000001011000010000100011000111100010000010100000000011111111110000000000101101101110100001000100101111101110000000001111111111100000000111100100101111011101011110001011100000000001111111111111000000000100111000001001010111010011100000000000001111111111111100000000011000110101110001110100011011100000000000111111111111111000000000111000011100010010000100001000000000000111111111111111110000000001001111010111111011110100000000000000111111111111111111100000000000010100001001001010011000000000000111111111111111111111000000000000011110000111101111000000000000111111111111111111111111000000000000000000001000000000000000001111111111111111111111111110000000000000000000000000000000000001111111111111111111111111111110000000000000000000000000000000011111111111111111111111111111111100000000000000000000000000000011111111111111111111111111111111111110000000000000000000000001111111111111111111111111111111111111111110000000000000000000011111111111111111111111111111111111111111111111100000000000011111111111111111111111111"
r, c = map(int, input().split())
print("IN" if magic[r * 64 + c] == "0" else "OUT")
