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