matrix := [ [3,8,8,6,0,17,6,17,0,8,0,0,0,8,0,0,0,15,8,0,0,0,17,6,6,0,17,0,0,0,0,0,0,6,17, 0,0,6,6,17,0,17,6,17,0], [0,0,0,19,10,19,19,19,10,0,8,0,8,0,0,0,15,0,0,8,0,10,4,4,19,10,19,20,0,0,20,0, 0,19,19,13,10,4,19,4,13,19,19,19,10], [0,0,0,19,13,19,19,19,13,0,0,8,0,0,15,8,0,0,0,0,15,10,19,19,4,10,4,20,0,0,3,0, 0,19,19,10,13,4,19,19,13,4,4,4,10], [15,20,15,17,17,0,0,6,6,15,0,0,0,8,0,0,0,0,0,0,0,17,6,0,0,6,6,0,15,0,0,0,15,6, 0,17,17,6,0,0,6,17,6,0,6], [0,0,0,19,4,10,10,19,4,0,0,15,0,0,8,20,0,0,0,0,3,19,19,10,13,19,4,8,0,0,15,0, 0,19,10,19,4,4,10,10,4,4,4,13,19], [0,0,0,4,19,10,10,4,19,0,15,0,8,0,0,20,0,0,0,0,20,19,19,13,10,19,4,0,0,15,0,15, 0,19,13,19,4,4,13,10,19,19,19,13,4], [15,15,20,0,17,6,17,0,6,0,0,0,0,0,0,0,0,8,8,0,0,6,0,6,6,17,0,0,8,0,0,0,15,0,17, 17,17,0,6,6,17,0,0,6,17], [0,0,0,10,4,4,4,10,4,0,20,0,3,0,0,15,0,0,0,0,15,4,13,19,4,4,10,0,0,15,0,15,0, 13,19,4,19,10,19,4,4,13,13,19,19], [0,0,0,13,4,4,4,13,4,0,3,0,3,0,0,0,15,0,0,8,0,4,10,19,4,4,13,15,0,0,15,0,0,13, 4,19,4,10,4,19,19,13,13,4,4], [6,17,0,6,0,17,13,19,19,10,4,4,17,0,6,10,19,19,6,6,0,0,0,8,4,19,10,13,4,4,0,17, 6,15,0,0,4,13,19,15,6,17,19,19,13], [4,4,10,4,10,4,15,6,6,0,6,17,19,13,19,10,4,4,17,17,0,0,15,0,4,19,13,0,6,17,10, 4,4,0,8,0,4,10,19,13,19,4,17,6,0], [19,19,10,19,10,19,13,19,19,10,19,19,19,10,19,0,17,6,9,9,0,8,0,0,6,6,0,13,19, 19,13,4,4,0,0,15,6,0,6,10,4,19,19,19,10], [19,19,10,0,15,0,17,0,17,13,4,19,4,13,19,0,9,9,6,17,0,13,19,19,10,4,4,10,19,19, 10,4,4,4,4,10,4,19,10,6,6,0,0,0,15], [4,4,10,8,0,0,4,13,19,0,6,6,19,13,4,0,6,6,19,19,10,10,19,19,15,6,6,10,4,4,0,17, 6,17,6,0,4,19,10,4,19,13,0,8,0], [17,6,0,0,0,8,19,13,4,13,19,4,6,0,6,0,6,6,19,19,13,0,6,17,10,4,4,0,17,6,10,19, 19,4,4,13,6,17,15,19,4,13,8,0,0], [4,10,4,15,17,6,4,4,13,19,10,19,0,17,6,6,6,0,13,4,4,0,6,17,19,4,13,0,17,17,13, 4,4,19,13,4,0,15,0,13,4,19,0,15,0], [4,13,4,10,19,4,4,4,10,6,0,17,0,14,9,4,19,10,13,19,19,13,4,4,19,4,13,10,19,4, 13,19,19,17,0,17,8,0,0,0,6,6,0,0,15], [17,0,6,10,19,4,17,6,0,19,13,19,0,17,6,19,4,10,0,6,17,10,4,4,17,6,8,10,4,19,0, 6,17,4,13,19,0,0,8,13,19,4,15,0,0], [4,10,4,4,4,13,8,0,0,17,0,17,13,19,4,6,17,0,13,19,4,0,8,0,10,4,4,10,19,4,0,17, 6,10,4,4,0,17,17,6,17,8,19,19,10], [6,0,17,4,4,10,0,15,0,6,0,6,13,4,19,4,4,13,0,6,6,0,0,15,13,4,4,0,17,17,10,4,4, 8,17,17,10,4,19,19,4,10,6,17,0], [4,13,4,6,17,0,0,0,15,9,0,9,0,17,17,19,19,13,10,19,4,8,0,0,0,6,17,13,19,4,10, 19,19,13,19,19,13,4,19,19,4,10,4,4,10], [17,6,0,19,19,13,17,6,0,13,4,4,17,0,6,10,19,4,17,6,0,19,13,19,15,0,0,13,19,4, 0,17,17,10,19,19,0,8,0,4,10,19,17,8,17], [19,19,10,4,4,10,4,4,13,10,4,4,4,10,4,0,6,6,9,14,0,17,0,6,0,15,0,10,19,4,10,19, 4,0,17,6,15,0,0,19,10,4,4,10,4], [19,19,13,6,6,15,4,4,10,0,6,17,19,10,19,10,4,19,6,17,0,19,10,19,0,0,8,0,17,17, 10,4,19,13,19,19,0,0,8,17,0,17,4,10,4], [6,17,0,13,4,19,8,0,0,10,19,4,6,0,6,0,6,17,4,19,13,4,19,13,6,0,17,0,6,6,10,19, 4,6,15,17,10,19,4,0,0,8,13,4,19], [4,4,10,10,4,19,0,15,0,0,17,17,4,13,19,0,17,6,19,4,13,17,6,15,19,13,19,13,4,19, 0,6,6,19,13,4,0,17,17,8,0,0,10,4,19], [4,4,13,0,17,17,0,0,15,10,4,19,4,10,19,0,9,14,17,17,0,4,19,13,4,13,4,10,4,19, 10,4,19,4,10,19,13,19,4,0,8,0,0,17,17], [10,19,19,0,6,17,0,17,17,19,4,13,4,19,10,4,10,4,19,13,19,21,13,10,19,10,4,15, 0,0,0,0,0,0,17,17,17,6,0,4,13,4,10,13,21], [0,17,6,10,4,4,13,19,4,17,17,0,6,6,0,6,0,17,17,0,6,2,10,13,4,10,19,0,15,0,0,0, 0,13,19,4,19,19,10,4,10,4,10,13,21], [10,4,4,10,19,19,10,19,4,19,4,10,19,4,10,4,13,4,4,13,4,0,0,0,6,0,6,0,0,8,0,12, 11,13,4,19,19,19,13,6,0,17,0,0,0], [0,6,17,19,4,13,4,10,4,6,17,0,6,17,0,6,0,6,6,0,6,10,4,19,10,2,13,0,8,0,0,0,0, 4,10,4,19,10,19,10,2,10,4,19,13], [13,4,4,17,17,0,17,0,6,4,4,13,4,4,10,4,10,19,4,13,19,10,19,4,13,21,10,15,0,0, 0,0,0,17,0,6,6,0,17,10,2,10,4,19,10], [10,4,4,4,19,13,4,13,4,19,19,13,4,4,13,19,10,4,4,10,19,0,6,6,0,0,0,0,0,15,0,11, 11,19,10,19,19,13,19,0,0,0,6,6,0], [13,19,19,10,21,13,19,4,13,6,6,0,17,17,0,17,0,17,17,0,17,19,10,4,10,19,4,0,0, 0,0,0,8,13,10,21,10,4,4,10,19,19,10,4,4], [0,17,6,0,0,0,6,6,0,19,4,13,19,4,13,4,10,19,19,10,4,19,13,4,10,4,19,0,11,12,0, 8,0,0,0,0,0,6,17,10,4,4,13,4,4], [10,19,19,10,21,13,19,4,10,19,4,10,4,19,13,19,10,4,19,13,4,6,0,6,0,17,17,0,0, 0,15,0,0,10,13,2,10,19,19,0,6,17,0,17,6], [10,19,19,19,13,4,10,13,2,19,19,13,19,19,10,4,13,4,19,10,19,6,17,0,6,17,0,0,0, 0,8,0,0,19,4,10,2,10,10,17,6,0,6,0,6], [0,17,6,17,0,17,0,0,0,19,19,10,4,4,10,19,13,19,19,13,19,19,19,10,4,4,13,0,11, 11,0,15,0,6,6,0,0,0,0,4,4,10,19,10,4], [13,19,19,19,10,4,10,13,2,6,17,0,6,17,0,6,0,17,17,0,6,4,4,10,4,4,10,0,0,0,0,0, 8,4,19,10,21,13,13,4,4,13,4,10,19], [4,13,4,0,8,0,0,17,6,9,0,14,0,17,6,4,4,13,10,4,19,17,17,0,0,15,0,10,19,19,13, 4,19,4,4,13,19,13,4,4,10,19,13,19,4], [19,13,19,0,0,8,13,4,4,6,0,17,13,4,4,6,17,0,10,19,4,4,19,13,0,0,15,10,4,4,0,17, 17,6,17,0,19,13,4,4,13,19,8,17,6], [17,0,6,15,0,0,10,4,4,17,0,6,13,19,19,4,4,10,0,6,6,4,19,10,8,0,0,0,6,17,10,4, 19,19,19,13,6,15,17,6,0,6,10,4,19], [19,13,19,4,13,4,6,15,17,4,10,19,0,6,6,6,6,0,10,4,4,4,10,4,6,0,17,0,6,17,13,4, 19,8,0,0,19,4,13,8,0,0,19,10,19], [19,10,19,4,10,4,4,10,19,17,0,17,0,9,9,4,19,13,10,19,19,4,10,4,19,13,19,10,4, 4,13,19,4,0,0,15,6,6,0,0,8,0,6,0,17], [17,0,6,17,0,6,19,13,4,19,10,4,0,17,17,4,19,10,0,17,6,17,8,17,4,13,4,13,4,4,0, 17,17,0,15,0,19,4,10,0,0,8,19,13,19] ]*Z(23);