<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
out_answers = {(32, 54), (4, 36), (8, 63), (46, 12), (29, 44), (33, 41), (9, 0), (48, 37), (12, 59), (45, 61), (52, 17), (0, 55), (20, 58), (3, 2), (25, 49), (50, 27), (53, 62), (57, 59), (46, 23), (33, 34), (36, 41), (22, 12), (61, 63), (59, 9), (24, 21), (62, 6), (45, 54), (52, 24), (0, 14), (38, 31), (3, 11), (53, 7), (1, 33), (57, 60), (5, 53), (61, 56), (34, 26), (59, 14), (24, 28), (62, 9), (0, 5), (38, 22), (28, 24), (53, 0), (1, 58), (21, 55), (7, 4), (54, 33), (19, 1), (5, 62), (61, 49), (9, 59), (47, 2), (59, 7), (62, 48), (49, 45), (13, 63), (63, 19), (28, 23), (50, 4), (1, 51), (21, 48), (26, 45), (29, 48), (54, 56), (19, 6), (58, 55), (9, 60), (56, 1), (37, 33), (62, 59), (10, 5), (0, 19), (38, 0), (25, 13), (63, 24), (50, 63), (53, 18), (1, 52), (21, 57), (4, 7), (26, 52), (46, 51), (51, 36), (16, 2), (2, 45), (58, 62), (41, 30), (22, 40), (9, 37), (34, 39), (56, 8), (37, 42), (23, 11), (60, 12), (25, 22), (63, 1), (1, 13), (4, 14), (19, 20), (2, 36), (58, 57), (5, 41), (47, 25), (30, 35), (55, 41), (23, 0), (6, 56), (60, 11), (63, 14), (14, 59), (1, 6), (46, 61), (2, 63), (27, 45), (47, 38), (20, 4), (6, 51), (62, 44), (45, 12), (10, 62), (32, 15), (60, 2), (63, 55), (14, 2), (1, 31), (48, 30), (29, 20), (51, 59), (54, 4), (2, 54), (27, 34), (47, 47), (55, 63), (59, 56), (6, 42), (10, 57), (31, 54), (57, 2), (38, 44), (63, 60), (36, 18), (1, 16), (51, 0), (54, 31), (19, 43), (2, 49), (22, 52), (5, 4), (30, 20), (52, 33), (17, 1), (3, 50), (59, 49), (42, 27), (23, 47), (6, 45), (57, 11), (60, 16), (8, 22), (11, 3), (61, 15), (26, 19), (48, 12), (54, 22), (2, 8), (24, 37), (5, 13), (47, 61), (30, 31), (52, 40), (3, 59), (59, 54), (32, 20), (31, 36), (35, 33), (57, 12), (60, 47), (8, 29), (7, 63), (61, 8), (26, 26), (48, 3), (15, 60), (2, 3), (24, 44), (3, 32), (6, 31), (28, 40), (21, 7), (8, 4), (63, 43), (61, 1), (44, 63), (19, 62), (2, 26), (24, 51), (52, 62), (0, 44), (56, 57), (55, 3), (20, 39), (3, 41), (6, 22), (32, 34), (31, 42), (21, 0), (60, 61), (7, 45), (58, 7), (48, 49), (15, 2), (52, 5), (55, 24), (20, 46), (23, 51), (6, 9), (18, 4), (21, 9), (4, 55), (60, 52), (8, 50), (7, 42), (39, 32), (61, 19), (12, 6), (62, 18), (49, 15), (0, 58), (3, 23), (6, 0), (32, 48), (31, 24), (53, 43), (21, 18), (4, 62), (60, 51), (8, 57), (7, 35), (46, 10), (58, 9), (61, 44), (48, 47), (12, 61), (34, 14), (62, 21), (27, 21), (49, 0), (0, 49), (20, 60), (25, 47), (4, 37), (29, 43), (36, 35), (22, 10), (9, 7), (0, 8), (20, 59), (3, 5), (25, 48), (28, 11), (53, 61), (1, 47), (57, 58), (40, 30), (7, 17), (33, 33), (61, 62), (9, 8), (59, 8), (24, 22), (62, 7), (45, 53), (0, 15), (3, 10), (53, 6), (4, 43), (46, 31), (5, 52), (61, 55), (59, 1), (24, 29), (62, 14), (49, 43), (13, 5), (0, 6), (38, 23), (63, 21), (28, 25), (1, 57), (21, 54), (4, 18), (7, 7), (29, 54), (33, 51), (54, 38), (19, 0), (5, 61), (61, 48), (9, 58), (47, 13), (59, 6), (62, 49), (49, 44), (13, 62), (0, 29), (25, 11), (63, 18), (50, 5), (1, 50), (21, 63), (4, 25), (26, 42), (29, 15), (54, 57), (58, 52), (5, 38), (34, 45), (56, 2), (37, 32), (23, 13), (62, 56), (10, 2), (0, 20), (25, 12), (50, 60), (53, 17), (1, 11), (21, 56), (4, 0), (26, 53), (46, 48), (16, 3), (2, 42), (58, 63), (41, 29), (22, 41), (47, 19), (34, 36), (56, 9), (37, 41), (23, 10), (35, 31), (18, 61), (60, 13), (63, 0), (53, 26), (1, 12), (4, 15), (19, 23), (2, 37), (47, 24), (55, 40), (6, 57), (62, 42), (60, 4), (63, 9), (50, 46), (1, 5), (54, 2), (2, 60), (47, 33), (20, 5), (6, 48), (62, 45), (45, 11), (10, 63), (35, 13), (60, 3), (63, 54), (14, 3), (51, 58), (54, 5), (2, 55), (22, 50), (47, 46), (55, 62), (59, 59), (23, 17), (31, 49), (35, 50), (57, 1), (38, 45), (63, 63), (50, 32), (1, 23), (51, 3), (54, 28), (2, 14), (22, 53), (5, 3), (52, 34), (17, 0), (56, 37), (55, 55), (3, 53), (59, 48), (57, 10), (8, 23), (11, 2), (36, 26), (39, 63), (61, 14), (26, 16), (54, 23), (2, 9), (24, 38), (5, 12), (27, 51), (47, 60), (30, 28), (52, 41), (20, 18), (3, 58), (35, 32), (8, 30), (7, 62), (63, 45), (11, 59), (61, 7), (48, 4), (15, 63), (2, 0), (24, 45), (49, 27), (55, 5), (28, 41), (32, 44), (31, 44), (35, 41), (21, 6), (8, 5), (7, 55), (63, 42), (61, 0), (48, 59), (15, 4), (2, 27), (52, 63), (0, 45), (56, 58), (55, 2), (23, 53), (6, 23), (32, 35), (31, 21), (60, 62), (43, 30), (7, 44), (16, 60), (58, 4), (2, 18), (49, 21), (52, 6), (0, 36), (20, 47), (23, 50), (31, 18), (53, 33), (21, 8), (4, 48), (60, 53), (7, 37), (46, 0), (33, 29), (61, 18), (48, 41), (62, 19), (0, 59), (25, 37), (6, 1), (28, 54), (21, 17), (4, 63), (8, 58), (33, 22), (9, 29), (12, 62), (34, 15), (0, 50), (20, 61), (3, 31), (50, 30), (4, 38), (8, 33), (7, 27), (41, 63), (22, 11), (9, 6), (24, 16), (0, 9), (3, 4), (50, 25), (53, 60), (1, 46), (57, 57), (40, 31), (4, 45), (8, 40), (46, 21), (29, 35), (61, 61), (17, 63), (59, 11), (24, 23), (62, 4), (45, 52), (49, 49), (52, 26), (0, 0), (38, 29), (3, 13), (50, 16), (53, 5), (21, 44), (4, 20), (8, 47), (7, 9), (46, 28), (5, 51), (61, 54), (34, 24), (59, 0), (62, 15), (49, 42), (13, 4), (0, 7), (38, 20), (63, 20), (28, 26), (1, 56), (21, 53), (4, 19), (7, 6), (46, 39), (29, 53), (19, 3), (5, 60), (9, 57), (47, 12), (62, 54), (13, 61), (35, 16), (25, 10), (50, 2), (1, 49), (21, 62), (26, 43), (29, 14), (54, 62), (58, 53), (44, 0), (47, 21), (56, 3), (37, 47), (23, 12), (62, 57), (45, 31), (10, 3), (49, 36), (35, 25), (0, 21), (50, 61), (1, 10), (4, 1), (46, 49), (51, 38), (58, 60), (41, 28), (5, 46), (9, 43), (47, 18), (56, 10), (60, 14), (63, 3), (53, 25), (1, 3), (4, 8), (54, 8), (2, 34), (9, 44), (47, 27), (6, 62), (62, 43), (38, 48), (60, 5), (63, 8), (50, 47), (1, 4), (48, 25), (29, 25), (54, 3), (2, 61), (22, 56), (5, 16), (47, 32), (56, 24), (55, 32), (20, 6), (23, 27), (45, 10), (10, 60), (38, 43), (63, 49), (50, 38), (14, 0), (1, 29), (29, 18), (51, 61), (54, 26), (2, 52), (22, 51), (5, 25), (27, 36), (47, 41), (52, 36), (55, 57), (59, 58), (42, 30), (23, 16), (32, 24), (31, 48), (57, 0), (63, 62), (26, 22), (51, 2), (54, 29), (19, 45), (2, 15), (5, 2), (56, 38), (55, 54), (3, 52), (59, 51), (23, 41), (32, 31), (57, 9), (8, 24), (63, 39), (11, 5), (61, 13), (48, 14), (2, 6), (24, 39), (5, 11), (27, 50), (47, 63), (30, 29), (20, 19), (3, 61), (42, 0), (23, 38), (6, 26), (35, 35), (8, 31), (7, 57), (63, 44), (11, 58), (61, 6), (26, 24), (51, 16), (15, 62), (19, 59), (2, 1), (24, 46), (27, 11), (55, 4), (3, 34), (23, 63), (6, 29), (35, 40), (8, 6), (7, 54), (48, 60), (37, 22), (30, 15), (0, 46), (56, 59), (55, 29), (23, 52), (6, 20), (28, 33), (32, 36), (31, 20), (60, 63), (7, 47), (33, 27), (16, 61), (36, 48), (58, 5), (51, 30), (37, 31), (2, 19), (27, 25), (49, 20), (3, 16), (31, 29), (18, 2), (21, 23), (4, 49), (60, 54), (7, 36), (46, 1), (33, 28), (58, 12), (39, 34), (61, 17), (12, 0), (62, 16), (0, 60), (3, 25), (6, 6), (32, 50), (21, 16), (4, 56), (8, 59), (33, 21), (36, 38), (12, 63), (34, 12), (52, 21), (0, 51), (20, 62), (25, 45), (50, 31), (57, 55), (21, 25), (4, 39), (8, 34), (46, 19), (29, 41), (36, 45), (22, 8), (44, 29), (9, 5), (62, 2), (49, 63), (52, 28), (0, 10), (3, 7), (25, 54), (53, 59), (1, 45), (57, 56), (40, 0), (8, 41), (46, 26), (61, 60), (17, 62), (59, 10), (24, 24), (62, 5), (45, 51), (49, 48), (52, 27), (0, 1), (38, 18), (3, 12), (25, 63), (28, 28), (50, 17), (53, 4), (4, 21), (7, 8), (22, 26), (5, 50), (61, 53), (9, 55), (59, 3), (62, 12), (49, 41), (13, 3), (0, 24), (38, 21), (25, 0), (63, 23), (1, 63), (4, 28), (7, 1), (46, 36), (54, 36), (19, 2), (5, 59), (44, 10), (9, 56), (62, 55), (13, 60), (35, 19), (28, 18), (50, 3), (1, 48), (4, 27), (26, 40), (46, 47), (29, 13), (51, 32), (54, 63), (58, 50), (41, 26), (22, 20), (5, 36), (44, 1), (47, 20), (56, 4), (37, 46), (62, 62), (10, 0), (35, 24), (0, 22), (25, 18), (63, 5), (50, 58), (1, 9), (4, 2), (51, 41), (58, 61), (5, 45), (47, 29), (60, 15), (25, 27), (63, 2), (53, 24), (1, 2), (4, 9), (29, 31), (22, 38), (47, 26), (30, 38), (6, 63), (45, 16), (60, 6), (25, 28), (63, 11), (14, 62), (1, 27), (54, 0), (2, 58), (27, 46), (34, 52), (56, 25), (55, 35), (20, 7), (23, 26), (6, 54), (10, 61), (35, 15), (43, 63), (63, 48), (50, 39), (14, 1), (36, 22), (26, 12), (29, 17), (51, 60), (19, 39), (2, 53), (22, 48), (47, 40), (56, 32), (55, 56), (59, 61), (42, 31), (23, 19), (45, 2), (57, 7), (63, 57), (36, 29), (1, 21), (39, 0), (51, 5), (54, 18), (2, 12), (5, 1), (30, 27), (52, 44), (56, 39), (20, 21), (3, 55), (59, 50), (6, 32), (32, 16), (57, 8), (8, 25), (63, 38), (11, 4), (61, 12), (48, 15), (54, 21), (2, 7), (5, 10), (47, 62), (52, 43), (3, 60), (42, 1), (6, 27), (8, 0), (7, 56), (63, 47), (11, 61), (61, 5), (26, 25), (51, 19), (2, 30), (24, 47), (49, 25), (0, 40), (56, 53), (55, 7), (28, 43), (8, 7), (7, 49), (48, 61), (2, 25), (49, 18), (30, 12), (52, 57), (0, 47), (56, 60), (28, 34), (32, 37), (31, 23), (53, 38), (60, 56), (33, 26), (16, 62), (58, 2), (37, 30), (2, 16), (52, 0), (0, 38), (20, 41), (6, 12), (18, 3), (4, 50), (60, 55), (43, 9), (33, 19), (58, 13), (61, 16), (12, 1), (62, 17), (0, 61), (6, 7), (28, 48), (32, 51), (4, 57), (8, 60), (29, 47), (33, 20), (36, 39), (9, 3), (48, 34), (34, 13), (52, 22), (0, 52), (20, 63), (3, 1), (50, 28), (1, 43), (57, 54), (21, 24), (8, 35), (46, 16), (33, 45), (22, 9), (44, 30), (9, 4), (62, 3), (49, 62), (0, 11), (3, 6), (50, 23), (31, 11), (53, 58), (1, 44), (57, 63), (29, 33), (33, 38), (22, 0), (61, 59), (17, 61), (59, 13), (62, 10), (0, 2), (3, 15), (28, 29), (50, 14), (53, 3), (4, 22), (26, 39), (46, 34), (61, 52), (44, 12), (47, 1), (34, 22), (59, 2), (62, 13), (45, 43), (13, 2), (0, 25), (63, 22), (1, 62), (4, 29), (7, 0), (46, 37), (29, 51), (33, 48), (54, 37), (19, 5), (5, 58), (9, 63), (47, 14), (62, 52), (10, 6), (13, 59), (35, 18), (0, 16), (50, 0), (1, 55), (4, 4), (46, 44), (29, 12), (51, 35), (54, 60), (2, 46), (58, 51), (22, 21), (5, 35), (44, 2), (47, 23), (30, 53), (56, 5), (37, 45), (23, 14), (62, 63), (45, 29), (10, 1), (0, 23), (25, 17), (63, 4), (50, 59), (53, 30), (1, 8), (39, 31), (4, 3), (26, 48), (54, 55), (19, 19), (2, 41), (58, 58), (22, 44), (47, 28), (38, 63), (60, 8), (25, 26), (63, 13), (1, 1), (4, 10), (46, 62), (29, 30), (19, 24), (27, 40), (47, 37), (30, 39), (55, 37), (23, 28), (6, 60), (45, 15), (60, 7), (63, 10), (50, 45), (14, 63), (54, 1), (2, 59), (47, 34), (30, 46), (56, 26), (20, 0), (6, 55), (10, 58), (31, 53), (43, 62), (63, 51), (50, 36), (36, 23), (1, 19), (51, 63), (54, 24), (2, 50), (22, 49), (5, 7), (56, 33), (55, 59), (3, 49), (59, 60), (42, 28), (45, 1), (31, 50), (57, 6), (63, 56), (1, 20), (51, 4), (2, 13), (5, 0), (52, 45), (56, 40), (20, 22), (3, 54), (59, 53), (6, 33), (32, 17), (61, 11), (48, 0), (2, 4), (24, 41), (5, 9), (27, 52), (55, 9), (3, 63), (6, 24), (32, 40), (31, 32), (8, 1), (7, 59), (63, 46), (11, 60), (61, 4), (19, 61), (2, 31), (27, 13), (49, 24), (0, 41), (56, 54), (55, 6), (6, 19), (28, 36), (32, 47), (31, 41), (35, 42), (40, 63), (8, 8), (7, 48), (48, 62), (51, 27), (15, 1), (37, 20), (49, 17), (52, 58), (56, 61), (3, 45), (6, 10), (28, 35), (32, 38), (4, 52), (60, 57), (7, 41), (16, 63), (36, 50), (58, 3), (37, 29), (2, 17), (52, 1), (0, 39), (20, 42), (31, 31), (18, 0), (21, 21), (4, 51), (60, 48), (8, 54), (7, 38), (58, 10), (61, 47), (12, 2), (27, 16), (49, 3), (0, 62), (6, 4), (28, 49), (32, 52), (4, 58), (43, 1), (8, 61), (7, 31), (46, 14), (29, 46), (33, 43), (36, 32), (9, 2), (48, 35), (12, 57), (45, 63), (49, 4), (0, 53), (20, 56), (3, 0), (25, 51), (31, 13), (1, 42), (57, 53), (7, 20), (46, 17), (33, 44), (36, 47), (22, 14), (44, 31), (62, 0), (49, 61), (0, 12), (3, 9), (25, 52), (50, 20), (53, 57), (57, 62), (54, 40), (5, 55), (61, 58), (34, 28), (59, 12), (62, 11), (45, 49), (0, 3), (3, 14), (50, 15), (53, 2), (1, 36), (21, 41), (4, 23), (26, 36), (7, 10), (54, 35), (5, 48), (61, 51), (47, 0), (59, 5), (62, 50), (49, 47), (13, 1), (63, 17), (1, 61), (21, 50), (4, 30), (7, 3), (46, 42), (29, 50), (54, 58), (19, 4), (5, 57), (9, 62), (34, 46), (42, 62), (62, 53), (10, 7), (49, 32), (13, 58), (0, 17), (50, 1), (1, 54), (21, 59), (4, 5), (26, 54), (29, 11), (51, 34), (16, 0), (54, 61), (2, 47), (34, 41), (56, 6), (62, 60), (45, 28), (35, 26), (18, 62), (25, 16), (63, 7), (1, 15), (4, 12), (51, 43), (2, 38), (58, 59), (22, 45), (5, 43), (42, 32), (6, 58), (60, 9), (63, 12), (1, 0), (4, 11), (46, 63), (29, 29), (30, 36), (6, 61), (62, 46), (45, 14), (32, 13), (60, 0), (63, 53), (14, 60), (51, 57), (54, 6), (2, 56), (22, 63), (5, 29), (34, 50), (56, 27), (55, 61), (20, 1), (23, 20), (6, 52), (10, 59), (31, 52), (35, 49), (63, 50), (50, 37), (36, 16), (1, 18), (51, 62), (19, 41), (2, 51), (22, 54), (5, 6), (47, 42), (56, 34), (55, 58), (20, 8), (3, 48), (59, 63), (45, 0), (32, 27), (57, 5), (63, 59), (11, 1), (26, 21), (2, 10), (5, 15), (47, 51), (20, 23), (3, 57), (59, 52), (6, 38), (8, 27), (7, 61), (11, 6), (61, 10), (26, 28), (48, 1), (2, 5), (24, 42), (5, 8), (55, 8), (3, 62), (6, 25), (32, 41), (35, 36), (8, 2), (7, 58), (63, 41), (11, 63), (33, 14), (61, 3), (44, 61), (51, 21), (15, 59), (19, 60), (27, 12), (52, 60), (0, 42), (56, 55), (55, 1), (3, 39), (6, 16), (35, 45), (8, 9), (48, 63), (15, 0), (37, 19), (2, 23), (52, 59), (56, 62), (20, 44), (6, 11), (31, 17), (57, 33), (4, 53), (60, 58), (33, 24), (36, 51), (58, 0), (12, 4), (24, 63), (52, 2), (0, 56), (20, 43), (3, 21), (6, 2), (18, 1), (4, 60), (60, 49), (8, 55), (33, 17), (58, 11), (61, 46), (12, 3), (49, 2), (0, 63), (6, 5), (28, 50), (57, 51), (4, 59), (43, 0), (8, 62), (9, 1), (48, 36), (12, 58), (24, 13), (45, 62), (49, 59), (52, 16), (0, 54), (20, 57), (3, 3), (50, 26), (31, 12), (53, 63), (57, 52), (40, 28), (8, 37), (7, 23), (46, 22), (29, 38), (22, 15), (24, 20), (62, 1), (49, 60), (0, 13), (3, 8), (53, 56), (1, 34), (57, 61), (21, 47), (4, 41), (8, 44), (33, 36), (5, 54), (61, 57), (59, 15), (62, 8), (0, 4), (38, 17), (28, 31), (53, 1), (1, 59), (26, 37), (7, 5), (46, 32), (54, 32), (22, 25), (5, 63), (61, 50), (47, 3), (34, 20), (59, 4), (62, 51), (13, 0), (0, 27), (63, 16), (1, 60), (4, 31), (26, 44), (7, 2), (46, 43), (54, 59), (58, 54), (22, 16), (5, 56), (9, 61), (56, 0), (42, 63), (62, 58), (10, 4), (49, 39), (35, 20), (0, 18), (25, 14), (63, 25), (50, 62), (53, 19), (1, 53), (21, 58), (4, 6), (46, 50), (16, 1), (2, 44), (22, 43), (5, 33), (9, 38), (47, 17), (34, 38), (56, 7), (37, 43), (62, 61), (18, 63), (63, 6), (1, 14), (4, 13), (46, 53), (51, 42), (19, 21), (2, 39), (58, 56), (41, 0), (5, 42), (34, 33), (6, 59), (60, 10), (63, 15), (1, 7), (2, 62), (5, 19), (47, 39), (30, 37), (62, 47), (32, 14), (60, 1), (63, 52), (50, 43), (14, 61), (48, 29), (29, 21), (54, 7), (2, 57), (47, 44), (30, 44), (34, 51), (55, 60), (59, 57), (23, 23), (6, 53), (10, 56), (35, 48), (57, 3), (38, 47), (63, 61), (50, 34), (14, 4), (36, 17), (1, 17), (48, 20), (51, 1), (54, 30), (19, 40), (2, 48), (22, 55), (5, 5), (30, 23), (52, 32), (17, 2), (56, 35), (3, 51), (59, 62), (42, 26), (57, 4), (63, 58), (11, 0), (36, 24), (26, 18), (51, 6), (2, 11), (3, 56), (59, 55), (6, 39), (8, 28), (7, 60), (11, 57), (61, 9), (26, 29), (48, 2), (15, 61), (2, 2), (27, 54), (3, 33), (35, 39), (8, 3), (7, 53), (63, 40), (11, 62), (61, 2), (44, 62), (51, 20), (19, 63), (2, 29), (27, 15), (52, 61), (0, 43), (56, 56), (55, 0), (6, 17), (28, 38), (35, 44), (40, 33), (21, 1), (60, 60), (58, 6), (44, 53), (15, 3), (37, 18), (49, 23), (52, 4), (56, 63), (20, 45), (3, 47), (23, 48), (6, 8), (21, 10), (4, 54), (60, 59), (8, 49), (46, 2), (33, 31), (58, 1), (39, 33), (12, 5), (24, 0), (27, 29), (52, 3), (0, 57), (55, 22), (25, 39), (6, 3), (31, 25), (4, 61), (60, 50), (43, 10), (8, 56), (58, 8), (61, 45), (12, 60), (62, 20), (27, 18), (49, 1), (0, 48)}
import sys
i, j = [int(_) for _ in sys.stdin.readline().split()]
if (i, j) in out_answers:
    print('OUT')
else:
    print('IN')
