sorting-networks
Version:
sorting networks for up to 64 inputs. the fastest way to sort small lists.
1 lines • 78.2 kB
JavaScript
module.exports = {"2":[0,1],"3":[0,2,0,1,1,2],"4":[0,2,1,3,0,1,2,3,1,2],"5":[0,3,1,4,0,2,1,3,0,1,2,4,1,2,3,4,2,3],"6":[0,5,1,3,2,4,1,2,3,4,0,3,2,5,0,1,2,3,4,5,1,2,3,4],"7":[0,6,2,3,4,5,0,2,1,4,3,6,0,1,2,5,3,4,1,2,4,6,2,3,4,5,1,2,3,4,5,6],"8":[0,2,1,3,4,6,5,7,0,4,1,5,2,6,3,7,0,1,2,3,4,5,6,7,2,4,3,5,1,4,3,6,1,2,3,4,5,6],"9":[0,3,1,7,2,5,4,8,0,7,2,4,3,8,5,6,0,2,1,3,4,5,7,8,1,4,3,6,5,7,0,1,2,4,3,5,6,8,2,3,4,5,6,7,1,2,3,4,5,6],"10":[0,8,1,9,2,7,3,5,4,6,0,2,1,4,5,8,7,9,0,3,2,4,5,7,6,9,0,1,3,6,8,9,1,5,2,3,4,8,6,7,1,2,3,5,4,6,7,8,2,3,4,5,6,7,3,4,5,6],"11":[0,9,1,6,2,4,3,7,5,8,0,1,3,5,4,10,6,9,7,8,1,3,2,5,4,7,8,10,0,4,1,2,3,7,5,9,6,8,0,1,2,6,4,5,7,8,9,10,2,4,3,6,5,7,8,9,1,2,3,4,5,6,7,8,2,3,4,5,6,7],"12":[0,8,1,7,2,6,3,11,4,10,5,9,0,1,2,5,3,4,6,9,7,8,10,11,0,2,1,6,5,10,9,11,0,3,1,2,4,6,5,7,8,11,9,10,1,4,3,5,6,8,7,10,1,3,2,5,6,9,8,10,2,3,4,5,6,7,8,9,4,6,5,7,3,4,5,6,7,8],"13":[0,12,1,10,2,9,3,7,5,11,6,8,1,6,2,3,4,11,7,9,8,10,0,4,1,2,3,6,7,8,9,10,11,12,4,6,5,9,8,11,10,12,0,5,3,8,4,7,6,11,9,10,0,1,2,5,6,9,7,8,10,11,1,3,2,4,5,6,9,10,1,2,3,4,5,7,6,8,2,3,4,5,6,7,8,9,3,4,5,6],"14":[0,6,1,11,2,12,3,10,4,5,7,13,8,9,1,2,3,7,4,8,5,9,6,10,11,12,0,4,1,3,5,6,7,8,9,13,10,12,0,1,2,9,3,7,4,11,6,10,12,13,2,5,4,7,6,9,8,11,1,2,3,4,6,7,9,10,11,12,1,3,2,4,5,6,7,8,9,11,10,12,2,3,4,7,6,9,10,11,4,5,6,7,8,9,3,4,5,6,7,8,9,10],"15":[1,2,3,10,4,14,5,8,6,13,7,12,9,11,0,14,1,5,2,8,3,7,6,9,10,12,11,13,0,7,1,6,2,9,4,10,5,11,8,13,12,14,0,6,2,4,3,5,7,11,8,10,9,12,13,14,0,3,1,2,4,7,5,9,6,8,10,11,12,13,0,1,2,3,4,6,7,9,10,12,11,13,1,2,3,5,8,10,11,12,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,11,5,6,7,8],"16":[0,13,1,12,2,15,3,14,4,8,5,6,7,11,9,10,0,5,1,7,2,9,3,4,6,13,8,14,10,15,11,12,0,1,2,3,4,5,6,8,7,9,10,11,12,13,14,15,0,2,1,3,4,10,5,11,6,7,8,9,12,14,13,15,1,2,3,12,4,6,5,7,8,10,9,11,13,14,1,4,2,6,5,8,7,10,9,13,11,14,2,4,3,6,9,12,11,13,3,5,6,8,7,9,10,12,3,4,5,6,7,8,9,10,11,12,6,7,8,9],"17":[0,11,1,15,2,10,3,5,4,6,8,12,9,16,13,14,0,6,1,13,2,8,4,14,5,15,7,11,0,8,3,7,4,9,6,16,10,11,12,14,0,2,1,4,5,6,7,13,8,9,10,12,11,14,15,16,0,3,2,5,6,11,7,10,9,13,12,15,14,16,0,1,3,4,5,10,6,9,7,8,11,15,13,14,1,2,3,7,4,8,6,12,11,13,14,15,1,3,2,7,4,5,9,11,10,12,13,14,2,3,4,6,5,7,8,10,3,4,6,8,7,9,10,12,5,6,7,8,9,10,11,12,4,5,6,7,8,9,10,11,12,13],"18":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,5,2,6,3,7,4,10,8,16,9,17,12,14,13,15,0,8,1,10,2,12,3,14,6,13,7,15,9,16,11,17,0,4,1,9,5,17,8,11,10,16,0,2,1,6,4,10,5,9,14,16,15,17,1,2,3,10,4,12,5,7,6,14,9,13,15,16,3,8,5,12,7,11,9,10,3,4,6,8,7,14,9,12,11,13,1,3,2,4,7,9,8,12,11,15,13,16,2,3,4,5,6,7,10,11,12,14,13,15,4,6,5,8,9,10,11,14,3,4,5,7,8,9,10,12,13,14,5,6,7,8,9,10,11,12],"19":[0,12,1,4,2,8,3,5,6,17,7,11,9,14,10,13,15,16,0,2,1,7,3,6,4,11,5,17,8,12,10,15,13,16,14,18,3,10,4,14,5,15,6,13,7,9,11,17,16,18,0,7,1,10,4,6,9,15,11,16,12,17,13,14,0,3,2,6,5,7,8,11,12,16,1,8,2,9,3,4,6,15,7,13,10,11,12,18,1,3,2,5,6,9,7,12,8,10,11,14,17,18,0,1,2,3,4,8,6,10,9,12,14,15,16,17,1,2,5,8,6,7,9,11,10,13,14,16,15,17,3,6,4,5,7,9,8,10,11,12,13,14,15,16,3,4,5,6,7,8,9,10,11,13,12,14,2,3,4,5,6,7,8,9,10,11,12,13,14,15],"20":[0,3,1,7,2,5,4,8,6,9,10,13,11,15,12,18,14,17,16,19,0,14,1,11,2,16,3,17,4,12,5,19,6,10,7,15,8,18,9,13,0,4,1,2,3,8,5,7,11,16,12,14,15,19,17,18,1,6,2,12,3,5,4,11,7,17,8,15,13,18,14,16,0,1,2,6,7,10,9,12,13,17,18,19,1,6,5,9,7,11,8,12,10,14,13,18,3,5,4,7,8,10,9,11,12,15,14,16,1,3,2,4,5,7,6,10,9,13,12,14,15,17,16,18,1,2,3,4,6,7,8,9,10,11,12,13,15,16,17,18,2,3,4,6,5,8,7,9,10,12,11,14,13,15,16,17,4,5,6,8,7,10,9,12,11,13,14,15,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"21":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,3,18,7,20,2,7,3,6,14,18,19,20,2,16,3,8,6,14,7,17,11,19,15,20,0,2,7,10,9,16,13,17,15,19,1,7,2,3,4,9,5,10,11,16,12,13,17,18,1,4,5,11,6,12,7,8,10,13,14,16,15,17,18,19,1,2,3,4,5,6,10,14,11,12,13,16,17,18,2,3,4,5,6,9,10,11,12,13,14,15,16,17,6,7,8,9,13,15,4,6,7,8,9,12,15,16,3,4,5,7,8,10,9,11,12,14,5,6,7,8,9,10,11,12,13,14],"22":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,17,18,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,17,21,1,8,6,20,7,17,19,21,3,19,4,7,6,16,14,21,18,20,0,6,1,4,3,12,5,18,7,10,9,16,11,20,13,19,14,17,15,21,2,5,3,7,6,8,10,11,12,13,15,20,16,18,17,19,5,8,7,9,10,12,14,16,15,17,19,20,2,7,3,5,8,9,10,14,11,16,12,18,17,19,2,6,4,7,5,8,11,13,12,14,15,18,1,2,4,6,7,10,9,11,13,16,2,4,3,6,5,7,8,10,9,12,11,14,13,15,16,18,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"23":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,21,22,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,17,21,18,20,19,22,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,1,2,5,18,7,19,9,16,10,21,12,20,15,22,5,9,6,7,10,18,11,21,12,17,13,20,14,15,3,17,6,16,7,14,8,12,15,19,20,21,3,4,5,8,6,10,9,12,13,16,14,15,17,18,19,21,0,5,1,8,2,12,3,9,4,10,7,13,11,17,14,16,18,20,2,6,3,5,4,8,7,11,10,12,13,18,14,17,15,20,1,3,2,5,6,9,7,10,11,13,12,14,15,18,16,17,19,20,2,3,4,6,8,9,11,12,13,14,15,16,17,19,3,4,5,6,7,8,9,10,12,13,14,15,17,18,4,5,6,7,8,9,10,11,16,17],"24":[0,20,1,12,2,16,3,23,4,6,5,10,7,21,8,14,9,15,11,22,13,18,17,19,0,3,1,11,2,7,4,17,5,13,6,19,8,9,10,18,12,22,14,15,16,21,20,23,0,1,2,4,3,12,5,8,6,9,7,10,11,20,13,16,14,17,15,18,19,21,22,23,2,5,4,8,6,11,7,14,9,16,12,17,15,19,18,21,1,8,3,14,4,7,9,20,10,12,11,13,15,22,16,19,0,7,1,5,3,4,6,11,8,15,9,14,10,13,12,17,16,23,18,22,19,20,0,2,1,6,4,7,5,9,8,10,13,15,14,18,16,19,17,22,21,23,2,3,4,5,6,8,7,9,10,11,12,13,14,16,15,17,18,19,20,21,1,2,3,6,4,10,7,8,9,11,12,14,13,19,15,16,17,20,21,22,2,3,5,10,6,7,8,9,13,18,14,15,16,17,20,21,3,4,5,7,10,12,11,13,16,18,19,20,4,6,8,10,9,12,11,14,13,15,17,19,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"25":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,18,21,22,0,16,2,8,3,12,4,20,5,19,9,22,10,24,1,8,6,9,7,22,10,18,14,19,21,24,1,17,2,10,5,21,11,24,18,20,1,4,2,16,3,21,6,10,8,18,9,17,11,14,12,20,23,24,1,2,3,5,4,16,12,18,13,23,14,19,15,24,17,21,4,8,7,13,9,16,10,12,11,18,14,20,15,23,19,22,2,4,3,8,5,16,6,9,7,17,13,21,15,19,22,23,3,6,5,10,7,11,8,9,12,16,13,18,14,17,19,22,20,21,3,4,6,8,7,9,10,12,11,14,13,16,15,17,18,20,19,21,5,8,7,10,9,12,11,13,14,16,15,18,17,20,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"26":[0,25,1,3,2,9,4,19,5,18,6,21,7,20,8,10,11,12,13,14,15,17,16,23,22,24,1,4,2,16,3,19,5,13,6,22,7,11,8,15,9,23,10,17,12,20,14,18,21,24,1,5,2,8,3,14,4,13,6,7,9,15,10,16,11,22,12,21,17,23,18,19,20,24,0,10,1,6,3,7,4,11,5,12,13,20,14,21,15,25,18,22,19,24,0,4,8,10,12,13,15,17,21,25,0,2,4,8,10,12,13,15,17,21,23,25,0,1,2,3,4,5,8,14,9,13,11,17,12,16,20,21,22,23,24,25,1,4,3,10,6,9,7,13,8,11,12,18,14,17,15,22,16,19,21,24,2,6,3,8,5,7,9,12,13,16,17,22,18,20,19,23,1,2,4,6,5,9,7,10,11,12,13,14,15,18,16,20,19,21,23,24,2,4,3,5,7,13,8,9,10,14,11,15,12,18,16,17,20,22,21,23,3,4,6,9,7,11,10,12,13,15,14,18,16,19,21,22,5,7,6,8,9,13,10,11,12,16,14,15,17,19,18,20,5,6,7,8,9,10,11,13,12,14,15,16,17,18,19,20,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],"27":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,25,26,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,18,24,20,26,22,25,2,8,3,12,5,10,6,9,7,13,11,14,16,18,17,22,19,26,21,25,0,16,1,8,5,22,10,24,11,25,23,26,1,18,4,8,5,19,9,26,10,20,12,23,21,24,2,10,3,21,4,17,6,20,7,24,8,19,12,18,14,23,15,26,2,4,6,10,7,11,8,16,9,17,13,19,14,22,15,23,20,21,1,8,3,10,5,9,12,16,13,18,14,17,15,24,19,25,1,2,3,12,4,8,7,13,9,16,11,18,14,20,17,21,19,22,23,25,2,4,3,8,5,12,6,9,7,14,10,16,11,17,13,20,15,19,18,21,23,24,5,6,7,10,9,12,11,13,14,16,15,18,17,20,21,22,3,5,6,8,7,9,10,12,11,14,13,16,15,17,18,20,19,21,22,23,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22],"28":[0,9,1,20,2,21,3,22,4,19,5,24,6,25,7,26,8,23,10,15,11,13,12,17,14,16,18,27,0,18,1,7,2,6,3,5,4,8,9,27,10,12,11,14,13,16,15,17,19,23,20,26,21,25,22,24,1,2,3,4,5,19,6,20,7,21,8,22,9,18,10,11,12,14,13,15,16,17,23,24,25,26,0,3,1,10,5,8,6,7,11,13,14,16,17,26,19,22,20,21,24,27,0,1,2,7,3,10,4,8,12,13,14,15,17,24,19,23,20,25,26,27,1,3,2,6,4,5,7,19,8,20,11,12,13,14,15,16,21,25,22,23,24,26,2,4,5,12,7,8,9,11,10,14,13,17,15,22,16,18,19,20,23,25,2,9,4,11,5,6,7,13,8,10,14,20,16,23,17,19,18,25,21,22,1,2,3,16,4,9,6,12,10,14,11,24,13,17,15,21,18,23,25,26,2,8,3,5,4,7,6,16,9,15,11,21,12,18,19,25,20,23,22,24,2,3,5,8,7,9,11,15,12,16,18,20,19,22,24,25,6,8,10,12,11,13,14,16,15,17,19,21,5,6,8,10,9,11,12,13,14,15,16,18,17,19,21,22,4,5,6,7,8,9,10,11,12,14,13,15,16,17,18,19,20,21,22,23,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"29":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,28,17,26,18,25,19,23,21,27,22,24,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,17,22,18,19,20,27,23,25,24,26,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,18,19,22,23,24,25,26,27,28,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,18,20,22,21,25,24,27,26,28,1,8,2,24,4,19,5,20,6,21,7,27,9,18,10,23,11,26,13,22,14,25,15,28,16,17,0,6,2,4,3,24,5,10,12,19,13,18,14,21,15,25,20,23,26,27,0,16,1,6,3,12,4,8,5,17,7,24,14,20,15,26,18,21,19,23,25,27,1,5,2,16,3,10,6,9,7,18,8,17,11,19,13,14,15,22,21,23,25,26,1,2,3,5,4,8,6,16,7,11,9,17,10,12,14,20,15,18,19,24,22,27,4,6,9,16,10,13,11,19,12,14,20,21,22,26,23,24,2,4,3,6,7,16,8,9,11,17,15,19,18,23,24,25,3,4,5,9,7,10,11,13,12,16,14,17,15,20,19,21,22,24,5,8,6,7,9,12,10,11,13,14,15,16,17,20,18,19,21,23,24,25,5,6,7,8,9,10,11,12,13,15,14,16,17,18,19,20,21,22,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],"30":[1,2,3,10,4,14,5,8,6,13,7,12,9,11,16,17,18,25,19,29,20,23,21,28,22,27,24,26,0,14,1,5,2,8,3,7,6,9,10,12,11,13,15,29,16,20,17,23,18,22,21,24,25,27,26,28,0,7,1,6,2,9,4,10,5,11,8,13,12,14,15,22,16,21,17,24,19,25,20,26,23,28,27,29,0,6,2,4,3,5,7,11,8,10,9,12,13,14,15,21,17,19,18,20,22,26,23,25,24,27,28,29,0,3,1,2,4,7,5,9,6,8,10,11,12,13,14,29,15,18,16,17,19,22,20,24,21,23,25,26,27,28,0,1,2,3,4,6,7,9,10,12,11,13,15,16,17,18,19,21,22,24,25,27,26,28,0,15,1,2,3,5,8,10,11,12,13,28,16,17,18,20,23,25,26,27,1,16,3,4,5,6,7,8,9,10,12,27,18,19,20,21,22,23,24,25,2,3,4,5,6,7,8,9,10,11,17,18,19,20,21,22,23,24,25,26,2,17,3,18,4,19,5,6,7,8,9,24,10,25,11,26,20,21,22,23,5,20,6,21,7,22,8,23,9,16,10,17,11,18,12,19,5,9,6,10,7,11,8,15,13,20,14,21,18,22,19,23,3,5,4,8,7,9,12,15,13,16,14,17,20,24,21,25,2,4,6,8,10,12,11,13,14,15,16,18,17,19,20,22,21,23,24,26,25,27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],"31":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,0,16,1,8,2,4,3,12,5,10,6,9,7,14,11,13,17,24,18,20,19,28,21,26,22,25,23,30,27,29,1,2,3,5,4,8,6,22,7,11,9,25,10,12,13,14,17,18,19,21,20,24,23,27,26,28,29,30,1,17,2,18,3,19,4,20,5,10,7,23,8,24,11,27,12,28,13,29,14,30,21,26,3,17,4,16,5,21,6,18,7,9,8,20,10,26,11,23,13,25,14,28,15,27,22,24,1,4,3,8,5,16,7,17,9,21,10,22,11,19,12,20,14,24,15,26,23,28,27,30,2,5,7,8,9,18,11,17,12,16,13,22,14,20,15,19,23,24,26,29,2,4,6,12,9,16,10,11,13,17,14,18,15,22,19,25,20,21,27,29,5,6,8,12,9,10,11,13,14,16,15,17,18,20,19,23,21,22,25,26,3,5,6,7,8,9,10,12,11,14,13,16,15,18,17,20,19,21,22,23,24,25,26,28,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],"32":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,27,31,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,23,31,0,16,1,8,2,4,3,12,5,10,6,9,7,14,11,13,15,31,17,24,18,20,19,28,21,26,22,25,23,30,27,29,1,2,3,5,4,8,6,22,7,11,9,25,10,12,13,14,17,18,19,21,20,24,23,27,26,28,29,30,1,17,2,18,3,19,4,20,5,10,7,23,8,24,11,27,12,28,13,29,14,30,21,26,3,17,4,16,5,21,6,18,7,9,8,20,10,26,11,23,13,25,14,28,15,27,22,24,1,4,3,8,5,16,7,17,9,21,10,22,11,19,12,20,14,24,15,26,23,28,27,30,2,5,7,8,9,18,11,17,12,16,13,22,14,20,15,19,23,24,26,29,2,4,6,12,9,16,10,11,13,17,14,18,15,22,19,25,20,21,27,29,5,6,8,12,9,10,11,13,14,16,15,17,18,20,19,23,21,22,25,26,3,5,6,7,8,9,10,12,11,14,13,16,15,18,17,20,19,21,22,23,24,25,26,28,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],"33":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,27,31,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,23,31,0,16,1,17,2,18,3,19,4,20,5,21,6,22,7,23,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,1,4,2,16,3,20,5,18,6,17,7,22,9,24,10,12,11,28,13,26,14,25,15,29,19,21,23,32,27,30,1,2,3,9,4,16,6,10,7,19,11,17,12,24,13,23,15,27,22,26,25,28,29,30,3,6,7,12,9,18,10,20,13,14,15,28,17,22,21,25,27,32,5,13,6,16,9,10,12,20,14,19,15,23,25,26,30,32,5,8,11,13,14,18,15,21,19,22,23,27,31,32,4,5,7,11,8,16,12,14,13,24,15,17,18,20,19,21,22,28,23,25,27,29,1,4,3,5,6,8,7,9,10,11,13,15,17,24,22,23,26,27,29,30,0,1,2,6,8,9,11,16,12,13,14,17,15,18,19,22,20,24,25,26,2,4,5,8,6,7,9,11,10,12,13,16,14,15,17,20,18,19,21,24,23,25,26,28,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,28,29],"34":[0,33,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,1,3,2,4,5,7,6,8,9,11,10,12,13,15,14,16,17,19,18,20,21,23,22,24,25,27,26,28,29,31,30,32,1,5,2,6,3,7,4,8,9,13,10,14,11,15,12,16,17,21,18,22,19,23,20,24,25,29,26,30,27,31,28,32,1,9,2,10,3,11,4,12,5,13,6,14,7,15,8,16,17,25,18,26,19,27,20,28,21,29,22,30,23,31,24,32,1,17,2,18,3,19,4,20,5,21,6,22,7,23,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,16,32,0,3,2,9,4,11,5,17,6,18,7,19,8,20,13,25,14,26,15,27,16,28,22,29,24,31,30,33,0,5,3,21,6,13,8,15,11,19,12,30,14,22,18,25,20,27,28,33,0,1,3,7,5,6,10,12,11,14,19,22,21,23,26,30,27,28,32,33,3,9,4,10,7,13,8,21,12,25,20,26,23,29,24,30,3,5,4,17,8,12,10,18,15,23,16,29,21,25,28,30,2,4,7,10,8,11,9,17,12,14,13,15,16,24,18,20,19,21,22,25,23,26,29,31,1,2,4,5,6,17,8,9,10,11,12,19,13,18,14,21,15,20,16,27,22,23,24,25,28,29,31,32,2,3,5,7,6,10,11,17,12,13,14,15,16,22,18,19,20,21,23,27,26,28,30,31,3,4,6,8,7,9,10,11,13,17,14,18,15,19,16,20,22,23,24,26,25,27,29,30,5,6,7,8,9,12,13,14,15,17,16,18,19,20,21,24,25,26,27,28,4,5,6,7,9,10,11,12,15,16,17,18,21,22,23,24,26,27,28,29,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],"35":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,32,34,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,27,31,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,23,31,0,16,1,17,2,18,3,19,4,20,5,21,6,22,7,23,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,0,32,1,33,2,34,3,18,4,16,5,24,6,10,7,26,9,20,11,22,12,17,14,19,15,27,23,30,25,28,1,8,2,32,7,14,9,12,10,18,13,25,15,23,17,20,19,26,27,30,33,34,1,4,8,16,10,33,11,18,15,22,23,27,24,34,2,8,7,11,9,10,14,18,15,19,16,32,17,33,22,26,31,34,1,2,8,16,10,17,11,14,15,18,19,22,23,26,24,32,31,33,3,24,4,8,5,17,14,15,18,19,20,32,21,31,28,33,2,4,5,16,6,20,8,9,12,24,13,21,25,31,28,32,29,33,3,6,10,12,13,20,17,24,21,25,22,33,29,31,3,5,6,16,13,17,20,24,21,28,25,32,27,31,30,33,3,8,5,9,6,10,7,21,12,16,17,20,19,27,25,28,29,32,3,4,6,8,7,13,9,12,11,25,14,28,18,32,21,24,23,29,5,8,7,10,11,17,13,16,14,20,15,23,18,24,19,25,22,28,26,32,27,29,5,6,7,9,10,12,11,13,14,16,15,21,18,20,22,24,23,25,26,28,30,32,7,8,9,10,11,12,13,14,15,17,19,21,23,24,25,26,27,28,29,30,31,32,15,16,17,18,19,20,21,22],"36":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,32,34,33,35,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,27,31,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,23,31,0,16,1,17,2,18,3,19,4,20,5,21,6,22,7,23,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,0,32,1,33,2,34,3,35,5,10,6,9,7,11,22,26,23,30,1,8,2,4,3,12,7,13,16,32,17,33,19,26,20,34,21,35,23,27,2,16,9,34,12,33,14,35,17,24,18,20,21,25,5,17,12,32,15,35,19,25,20,24,21,22,33,34,4,12,9,32,11,34,14,33,15,23,22,28,27,35,4,8,6,12,9,17,10,32,11,24,13,33,14,21,29,34,31,35,1,4,3,14,7,21,8,18,10,20,13,22,19,32,26,29,28,33,30,34,1,2,3,5,4,16,7,17,9,10,11,14,12,18,13,19,15,28,21,32,22,24,23,30,25,26,27,33,31,34,2,4,3,8,5,12,6,16,11,13,14,19,15,22,18,20,21,25,24,26,27,29,28,32,30,33,3,6,5,9,7,18,10,16,15,21,17,20,22,25,23,29,24,28,26,32,31,33,3,4,7,11,8,10,12,16,13,17,14,18,19,20,22,24,23,27,25,26,30,32,5,8,7,12,9,10,11,14,13,16,15,17,18,19,20,21,23,28,27,30,29,32,6,8,7,9,10,12,11,13,14,16,15,18,17,19,20,22,21,24,23,25,26,28,29,30,31,32,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],"37":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,32,34,33,35,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,27,31,32,36,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,23,31,0,16,1,17,2,18,3,19,4,20,5,21,6,22,7,23,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,0,32,1,33,2,34,3,35,4,36,5,17,6,18,7,19,9,10,12,24,13,25,14,26,21,22,23,27,29,30,1,4,2,16,5,6,8,32,13,14,17,18,25,26,33,36,1,2,4,16,6,9,18,24,22,25,33,34,4,8,12,33,16,32,34,36,1,4,5,12,8,16,20,34,21,33,35,36,2,8,5,6,9,34,14,33,15,36,17,21,20,32,28,35,2,4,5,8,6,20,7,35,10,32,11,34,12,17,13,21,15,24,19,28,30,36,3,19,7,21,9,20,11,22,15,18,23,30,24,29,25,34,26,35,28,33,31,36,3,13,7,17,10,15,14,19,18,32,22,25,23,24,27,35,29,34,3,12,10,16,11,18,13,14,15,20,19,28,21,23,26,32,27,33,30,34,31,35,3,6,7,13,8,10,9,16,11,15,14,17,18,20,19,21,22,26,23,28,24,27,25,32,30,33,31,34,3,8,6,10,7,11,12,16,13,18,14,15,17,20,19,22,21,25,23,26,24,29,28,32,31,33,3,5,6,8,7,10,9,12,11,13,14,16,15,19,17,18,20,22,21,23,24,26,25,28,27,29,30,32,3,4,7,9,10,12,11,14,13,16,15,17,18,19,20,21,22,23,24,25,26,28,27,30,29,32,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"38":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,32,34,33,35,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,27,31,32,36,33,37,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,23,31,0,16,1,17,2,18,3,19,4,20,5,21,6,22,7,23,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,0,32,1,33,2,34,3,35,4,36,5,37,7,26,10,20,11,25,15,30,17,24,23,29,1,8,3,12,4,16,6,36,9,34,18,33,22,26,23,27,35,37,1,4,2,8,5,9,6,17,10,18,12,33,13,22,14,35,16,32,20,34,24,36,25,37,2,16,3,18,5,10,8,32,9,17,19,35,21,22,28,33,29,37,34,36,1,2,3,6,4,16,7,19,11,21,12,18,15,35,22,26,24,32,28,34,31,37,33,36,3,16,4,8,6,10,7,28,9,24,14,33,15,23,17,18,19,21,20,32,25,34,27,35,29,36,2,4,5,8,10,20,11,28,12,24,13,25,14,19,18,32,21,33,29,34,30,36,3,5,6,12,7,13,8,16,9,10,11,14,15,21,17,18,19,28,20,24,22,29,23,33,25,32,26,34,27,30,31,36,3,4,5,8,6,9,7,17,11,20,12,16,13,18,14,24,15,22,19,25,21,26,23,29,28,32,33,34,35,36,6,8,7,11,9,12,10,16,13,20,14,17,15,19,18,24,21,28,22,25,23,27,26,32,30,33,31,35,5,6,7,10,11,16,13,14,15,20,17,18,19,21,22,24,23,25,26,28,27,29,30,32,33,34,7,9,10,12,11,13,14,16,15,17,18,20,19,22,21,24,23,26,25,28,27,30,29,32,31,33,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"39":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,32,34,33,35,36,38,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,27,31,32,36,33,37,34,38,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,23,31,0,16,1,17,2,18,3,19,4,20,5,21,6,22,7,23,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,0,32,1,33,2,34,3,35,4,36,5,37,6,38,9,20,11,21,13,22,14,19,15,30,23,27,25,28,1,4,3,36,5,18,6,17,7,11,10,33,12,34,14,26,16,32,19,35,21,37,22,38,1,16,2,4,3,24,5,12,7,25,8,32,9,10,11,28,13,14,17,33,18,34,19,21,20,36,29,35,37,38,2,8,3,5,4,32,6,9,7,13,10,18,11,26,12,24,14,25,15,29,17,20,21,33,23,37,27,38,34,36,1,2,3,6,4,8,5,9,10,12,15,23,18,32,19,34,20,24,21,36,26,33,27,29,31,38,35,37,4,16,5,10,9,18,11,19,12,17,13,21,22,34,23,27,24,32,28,36,30,35,31,37,2,4,7,11,8,16,9,12,14,22,17,18,19,32,20,24,25,34,26,28,33,36,35,37,3,8,6,16,7,20,10,12,11,24,13,14,15,25,21,22,23,34,29,36,30,33,31,35,37,38,3,4,5,6,10,16,13,17,14,18,15,26,19,21,22,28,23,30,25,32,27,33,29,34,31,36,5,8,6,9,7,13,11,17,12,16,14,20,15,19,18,24,21,26,22,25,27,30,28,32,33,34,35,36,6,8,7,9,11,16,13,14,15,20,17,18,19,24,21,22,23,26,25,28,29,32,31,34,7,10,9,12,11,13,14,16,15,17,18,20,19,21,22,24,23,25,26,28,27,29,30,32,31,33,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"40":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,32,34,33,35,36,38,37,39,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,27,31,32,36,33,37,34,38,35,39,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,23,31,0,16,1,17,2,18,3,19,4,20,5,21,6,22,7,23,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,0,32,1,33,2,34,3,35,4,36,5,37,6,38,7,39,9,20,11,21,13,22,14,19,23,27,25,28,1,4,3,36,5,18,6,17,7,11,10,33,12,34,14,26,15,39,16,32,19,35,21,37,22,38,1,16,2,4,3,24,5,12,7,25,8,32,9,10,11,28,13,14,17,33,18,34,19,21,20,36,29,35,30,39,37,38,2,8,3,5,4,32,6,9,7,13,10,18,11,26,12,24,14,25,15,30,17,20,21,33,23,37,27,38,31,39,34,36,1,2,3,6,4,8,5,9,10,12,15,29,18,32,19,34,20,24,21,36,26,33,31,38,35,37,4,16,5,10,9,18,11,19,12,17,13,21,15,23,22,34,24,32,27,29,28,36,30,35,31,37,2,4,7,11,8,16,9,12,14,22,17,18,19,32,20,24,23,27,25,34,26,28,33,36,35,37,3,8,6,16,7,20,10,12,11,24,13,14,15,25,21,22,23,34,29,36,30,33,31,35,37,38,3,4,5,6,10,16,13,17,14,18,15,26,19,21,22,28,23,30,25,32,27,33,29,34,31,36,5,8,6,9,7,13,11,17,12,16,14,20,15,19,18,24,21,26,22,25,27,30,28,32,33,34,35,36,6,8,7,9,11,16,13,14,15,20,17,18,19,24,21,22,23,26,25,28,29,32,31,34,7,10,9,12,11,13,14,16,15,17,18,20,19,21,22,24,23,25,26,28,27,29,30,32,31,33,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"41":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,32,34,33,35,36,38,37,39,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,16,20,17,21,18,22,19,23,24,28,25,29,26,30,27,31,32,36,33,37,34,38,35,39,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,16,24,17,25,18,26,19,27,20,28,21,29,22,30,23,31,32,40,0,16,1,17,2,18,3,19,4,20,5,21,6,22,7,23,8,24,9,25,10,26,11,27,12,28,13,29,14,30,15,31,0,32,1,33,2,34,3,35,4,36,5,37,6,38,7,39,8,40,9,20,29,30,1,4,3,24,5,18,7,22,8,16,10,33,14,37,15,32,17,34,19,40,1,8,2,15,3,6,7,38,9,10,11,14,13,40,19,36,20,33,23,32,2,8,3,9,4,15,10,17,12,19,13,25,14,28,21,33,22,38,34,36,35,40,1,2,5,12,14,22,15,16,19,24,20,34,26,35,28,38,39,40,5,10,6,20,8,15,12,19,18,34,21,24,26,36,27,39,31,40,32,38,35,37,3,5,4,15,6,12,9,10,11,34,13,26,16,19,17,18,25,36,27,29,31,37,33,35,38,39,4,8,5,15,6,9,7,25,10,16,12,17,18,19,23,31,24,34,26,33,30,37,35,36,2,4,3,8,5,6,7,21,9,15,10,12,13,24,14,26,16,17,19,20,22,35,23,27,25,34,28,33,29,31,30,38,32,36,37,39,3,4,5,8,6,10,7,13,11,21,12,15,18,19,22,26,23,28,24,25,27,33,29,30,31,38,34,35,6,8,7,18,10,12,11,14,13,19,20,21,22,24,25,26,27,29,31,36,32,34,33,35,37,38,11,16,14,17,20,23,21,28,27,32,29,34,30,33,36,37,7,11,13,16,14,18,17,19,20,22,21,24,23,25,26,28,30,32,31,34,33,35,7,9,11,13,14,15,16,20,17,18,19,22,21,23,24,26,25,27,28,29,31,33,34,35,7,10,9,12,11,14,13,15,16,17,18,20,19,21,22,23,24,25,26,27,28,30,29,32,33,34,35,36,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"42":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,21,23,22,24,25,27,26,28,29,31,30,32,33,35,34,36,37,39,38,40,0,4,1,5,2,6,3,7,8,12,9,13,10,14,11,15,21,25,22,26,23,27,24,28,29,33,30,34,31,35,32,36,0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15,21,29,22,30,23,31,24,32,25,33,26,34,27,35,28,36,3,18,7,20,24,39,28,41,2,7,3,6,14,18,19,20,23,28,24,27,35,39,40,41,2,16,3,8,6,14,7,17,11,19,15,20,23,37,24,29,27,35,28,38,32,40,36,41,0,2,7,10,9,16,13,17,15,19,20,41,21,23,28,31,30,37,34,38,36,40,0,21,1,7,2,3,4,9,5,10,11,16,12,13,17,18,22,28,23,24,25,30,26,31,32,37,33,34,38,39,1,4,5,11,6,12,7,8,10,13,14,16,15,17,18,19,22,25,26,32,27,33,28,29,31,34,35,37,36,38,39,40,1,2,3,4,5,6,10,14,11,12,13,16,17,18,19,40,22,23,24,25,26,27,31,35,32,33,34,37,38,39,1,22,2,3,4,5,6,9,10,11,12,13,14,15,16,17,18,39,23,24,25,26,27,30,31,32,33,34,35,36,37,38,2,23,6,7,8,9,13,15,17,38,27,28,29,30,34,36,4,6,7,8,9,12,15,16,17,22,18,23,25,27,28,29,30,33,36,37,3,4,5,7,8,10,9,11,12,14,15,36,16,37,24,25,26,28,29,31,30,32,33,35,3,24,4,25,5,6,7,8,9,10,11,12,13,14,16,21,26,27,28,29,30,31,32,33,34,35,5,26,6,27,7,28,8,29,9,30,10,31,11,32,12,33,13,34,14,35,19,24,20,25,8,16,9,17,10,18,11,19,12,20,13,26,14,27,15,28,21,29,22,30,23,31,24,32,25,33,4,8,5,9,6,10,7,11,12,16,13,17,14,18,15,19,20,21,22,26,23,27,24,28,25,29,30,34,31,35,32,36,33,37,2,4,3,5,6,8,7,9,10,12,11,13,14,16,15,17,18,20,19,22,21,23,24,26,25,27,28,30,29,31,32,34,33,35,36,38,37,39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"43":[0,2,1,3,4,6,5,7,9,10,11,21,12,14,13,15,16,18,17,19,20,22,23,29,24,26,25,27,28,30,31,37,32,34,33,35,36,38,39,41,40,42,0,1,2,3,4,5,6,7,8,9,11,20,12,13,14,15,16,17,18,19,21,22,23,28,24,25,26,27,29,30,31,36,32,33,34,35,37,38,39,40,41,42,0,31,1,2,4,24,5,6,7,42,8,16,9,10,11,32,12,23,13,14,15,30,17,18,19,38,20,21,25,26,27,35,28,29,33,34,36,37,40,41,0,4,1,36,3,27,5,25,6,41,7,19,9,17,10,21,11,12,13,28,14,29,15,22,16,39,18,37,20,33,23,32,24,31,26,34,30,35,38,42,1,5,2,26,3,15,4,11,6,18,7,30,8,12,10,14,13,20,16,23,17,40,21,29,22,27,25,36,28,33,32,39,37,41,0,16,2,10,3,7,4,8,5,13,9,20,11,23,12,31,14,26,15,19,17,28,21,34,22,38,24,32,27,42,29,37,33,40,0,4,1,17,5,9,6,21,8,24,10,18,12,16,13,28,14,29,15,22,19,35,20,36,23,32,25,33,26,41,27,30,31,39,34,37,1,5,2,6,7,15,8,12,9,25,10,14,11,24,16,23,17,20,18,34,19,38,21,26,22,27,28,33,30,35,31,32,36,40,37,41,4,8,6,10,9,17,11,12,13,25,14,21,15,22,16,24,18,29,19,27,20,28,23,31,26,34,30,38,33,36,35,42,1,4,5,9,6,32,7,36,8,11,10,14,12,16,13,17,18,21,19,22,20,25,23,24,26,29,27,30,28,33,34,37,35,38,41,42,2,8,3,33,4,12,5,11,6,16,7,32,9,13,10,39,14,18,17,20,21,26,25,28,27,36,29,34,30,41,35,37,38,40,2,4,3,31,6,11,7,20,9,23,14,24,15,39,19,28,21,32,22,34,35,36,40,41,3,8,7,14,10,23,15,25,18,31,19,20,21,24,22,33,28,32,38,39,3,12,7,13,8,17,15,23,19,21,20,24,22,31,26,38,29,32,30,39,3,5,7,11,8,12,13,16,17,18,25,26,27,29,30,38,32,35,37,39,3,4,8,9,10,12,11,13,14,16,15,17,18,23,22,25,26,31,27,28,29,32,30,33,34,38,39,40,5,8,9,10,12,15,16,19,17,18,20,22,21,23,24,27,25,26,30,31,33,34,37,38,6,8,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,29,31,32,33,34,35,36,37,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"44":[0,2,1,3,4,6,5,7,8,10,9,11,12,14,13,15,16,18,17,19,20,22,21,23,24,26,25,27,28,30,29,31,32,34,33,35,36,38,37,39,40,42,41,43,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,0,36,1,2,4,24,5,6,7,43,8,16,9,10,11,23,12,28,13,14,15,31,17,18,19,39,20,32,21,22,25,26,27,35,29,30,33,34,37,38,41,42,0,4,1,37,3,27,5,25,6,42,7,19,9,17,10,22,11,15,12,20,13,29,14,30,16,40,18,38,21,33,23,31,24,36,26,34,28,32,39,43,1,5,2,26,3,11,4,12,6,18,8,20,10,14,13,21,15,27,16,28,17,41,22,30,23,35,25,37,29,33,31,39,32,40,38,42,0,16,2,10,4,8,5,13,7,23,9,21,11,19,12,28,14,26,15,31,17,29,20,36,22,34,24,32,27,43,30,38,33,41,35,39,0,4,1,17,3,7,5,9,6,22,8,24,10,18,11,15,13,29,14,30,16,20,19,35,21,37,23,27,25,33,26,42,28,32,34,38,36,40,39,43,1,5,2,6,7,11,8,16,9,25,10,14,12,24,15,23,17,21,18,34,19,31,20,28,22,26,27,35,29,33,32,36,37,41,38,42,4,8,6,10,9,17,11,15,12,16,13,25,14,22,18,30,19,23,20,24,21,29,26,34,27,31,28,32,33,37,35,39,1,4,5,9,6,36,7,37,8,12,10,14,13,17,15,19,16,20,18,22,21,25,23,27,24,28,26,30,29,33,31,35,34,38,39,42,2,8,3,33,4,16,5,12,6,20,7,36,9,13,10,40,14,18,17,21,22,26,23,37,25,29,27,39,30,34,31,38,35,41,2,4,3,32,6,12,7,21,9,24,11,40,14,28,15,29,19,34,22,36,31,37,39,41,3,8,7,14,10,24,11,25,15,21,18,32,19,33,22,28,29,36,35,40,3,16,7,13,8,17,11,24,15,22,19,32,21,28,26,35,27,40,30,36,3,5,7,12,8,16,13,20,17,18,23,30,25,26,27,35,31,36,38,40,3,4,8,9,10,16,11,17,12,13,14,20,18,24,19,25,23,29,26,32,27,33,30,31,34,35,39,40,5,8,9,10,11,16,15,20,17,18,19,21,22,24,23,28,25,26,27,32,33,34,35,38,6,8,7,9,10,12,11,13,14,16,15,17,18,20,19,22,21,24,23,25,26,28,27,29,30,32,31,33,34,36,35,37,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"45":[0,9,1,6,2,4,3,7,5,8,11,20,12,17,13,15,14,18,16,19,22,31,23,28,24,26,25,29,27,30,33,41,34,40,35,39,36,44,37,43,38,42,0,1,3,5,4,10,6,9,7,8,11,12,14,16,15,21,17,20,18,19,22,23,25,27,26,32,28,31,29,30,33,34,35,38,36,37,39,42,40,41,43,44,1,3,2,5,4,7,8,10,12,14,13,16,15,18,19,21,23,25,24,27,26,29,30,32,33,35,34,39,38,43,42,44,0,4,1,2,3,7,5,9,6,8,11,15,12,13,14,18,16,20,17,19,22,26,23,24,25,29,27,31,28,30,33,36,34,35,37,39,38,40,41,44,42,43,0,1,2,6,4,5,7,8,9,10,11,12,13,17,15,16,18,19,20,21,22,23,24,28,26,27,29,30,31,32,34,37,36,38,39,41,40,43,0,11,2,4,3,6,5,7,8,9,10,21,13,15,14,17,16,18,19,20,22,33,24,26,25,28,27,29,30,31,34,36,35,38,39,42,41,43,0,22,1,2,3,4,5,6,7,8,9,20,11,33,12,13,14,15,16,17,18,19,23,24,25,26,27,28,29,30,32,43,35,36,37,38,39,40,41,42,1,12,2,3,4,5,6,7,8,19,10,32,11,22,13,14,15,16,17,18,21,43,23,34,24,25,26,27,28,29,31,42,37,39,38,40,1,23,2,13,3,25,4,26,5,27,6,28,9,31,12,34,18,29,20,42,21,32,24,35,36,37,38,39,40,41,2,24,7,18,9,34,12,23,13,35,14,36,15,37,16,38,17,39,20,31,29,44,30,41,3,14,4,15,5,16,6,17,7,40,8,30,9,23,10,35,13,24,19,41,20,34,25,36,26,37,27,38,28,39,4,11,5,12,6,13,8,33,10,24,14,25,15,26,16,27,17,28,18,40,19,30,21,35,29,36,31,38,32,39,1,4,7,14,8,22,9,12,10,13,16,23,17,24,19,33,20,27,21,28,25,29,30,37,31,34,32,35,39,42,40,44,3,9,8,11,12,16,13,17,14,25,15,22,18,29,19,26,20,23,21,24,27,31,28,32,30,33,35,41,36,40,42,44,2,8,3,5,7,12,11,15,14,16,18,25,19,22,26,30,28,33,29,36,32,37,34,40,38,42,43,44,2,4,6,11,10,15,13,19,17,22,18,20,21,26,23,25,24,30,27,29,31,36,32,33,35,38,37,40,39,42,6,8,7,10,9,11,12,15,13,14,16,19,17,18,20,22,21,23,24,27,25,26,28,30,29,31,34,36,35,40,39,41,3,6,5,8,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,34,33,36,35,37,38,40,41,42,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,39,40],"46":[0,9,1,6,2,4,3,7,5,8,11,19,12,18,13,17,14,22,15,21,16,20,23,32,24,29,25,27,26,30,28,31,34,42,35,41,36,40,37,45,38,44,39,43,0,1,3,5,4,10,6,9,7,8,11,12,13,16,14,15,17,20,18,19,21,22,23,24,26,28,27,33,29,32,30,31,34,35,36,39,37,38,40,43,41,42,44,45,1,3,2,5,4,7,8,10,11,13,12,17,16,21,20,22,24,26,25,28,27,30,31,33,34,36,35,40,39,44,43,45,0,4,1,2,3,7,5,9,6,8,11,14,12,13,15,17,16,18,19,22,20,21,23,27,24,25,26,30,28,32,29,31,34,37,35,36,38,40,39,41,42,45,43,44,0,1,2,6,4,5,7,8,9,10,12,15,14,16,17,19,18,21,22,45,23,24,25,29,27,28,30,31,32,33,35,38,37,39,40,42,41,44,0,11,2,4,3,6,5,7,8,9,12,14,13,16,17,20,19,21,23,34,25,27,26,29,28,30,31,32,35,37,36,39,40,43,42,44,0,23,1,2,3,4,5,6,7,8,10,21,11,34,13,14,15,16,17,18,19,20,24,25,26,27,28,29,30,31,33,44,36,37,38,39,40,41,42,43,1,12,2,3,4,5,6,7,9,20,10,33,11,23,15,17,16,18,21,44,24,35,25,26,27,28,29,30,32,43,38,40,39,41,1,24,2,13,3,26,4,27,5,28,6,29,7,30,9,32,12,35,14,15,16,17,18,19,20,43,21,33,25,36,37,38,39,40,41,42,2,25,7,26,8,19,9,35,12,24,13,36,14,37,15,38,16,39,17,40,18,41,20,32,30,45,31,42,3,18,4,15,5,16,6,17,7,37,8,31,9,24,10,36,13,25,19,42,20,35,22,26,27,38,28,39,29,40,30,41,44,45,3,14,4,11,5,12,6,13,8,34,10,25,15,27,16,28,17,29,18,22,19,31,21,36,26,41,30,37,32,39,33,40,1,4,7,14,8,23,9,12,10,13,16,24,17,25,19,34,20,28,21,29,22,30,26,37,31,38,32,35,33,36,40,44,41,43,3,9,8,11,12,16,13,17,14,18,15,23,19,27,20,24,21,25,26,30,28,32,29,33,31,34,35,37,36,42,39,41,43,44,2,8,7,12,11,15,14,16,18,22,19,23,26,28,27,31,29,34,30,32,33,38,36,39,40,42,2,4,5,8,6,11,10,15,12,14,13,19,17,23,18,20,21,27,22,24,25,31,29,30,32,35,33,34,37,38,40,41,42,43,3,6,7,10,9,11,13,15,16,18,17,19,20,23,21,22,24,26,25,27,28,31,32,33,34,35,36,38,41,42,3,5,6,8,7,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,33,34,36,37,38,39,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,35,36,39,40],"47":[0,9,1,6,2,4,3,7,5,8,11,19,12,18,13,17,14,22,15,21,16,20,23,31,24,30,25,29,26,34,27,33,28,32,35,43,36,42,37,41,38,46,39,45,40,44,0,1,3,5,4,10,6,9,7,8,11,12,13,16,14,15,17,20,18,19,21,22,23,24,25,28,26,27,29,32,30,31,33,34,35,36,37,40,38,39,41,44,42,43,45,46,1,3,2,5,4,7,8,10,11,13,12,17,16,21,20,22,23,25,24,29,28,33,32,34,35,37,36,41,40,45,44,46,0,4,1,2,3,7,5,9,6,8,11,14,12,13,15,17,16,18,19,22,20,21,23,26,24,25,27,29,28,30,31,34,32,33,35,38,36,37,39,41,40,42,43,46,44,45,0,1,2,6,4,5,7,8,9,10,12,15,14,16,17,19,18,21,22,46,23,35,24,27,26,28,29,31,30,33,36,39,38,40,41,43,42,45,0,11,2,4,3,6,5,7,8,9,12,14,13,16,17,20,19,21,24,26,25,28,29,32,31,33,36,38,37,40,41,44,43,45,0,23,1,2,3,4,5,6,7,8,10,21,11,35,13,14,15,16,17,18,19,20,24,36,25,26,27,28,29,30,31,32,33,45,37,38,39,40,41,42,43,44,1,12,2,3,4,5,6,7,9,20,10,33,11,23,15,17,16,18,21,45,25,37,27,29,28,30,32,44,39,41,40,42,1,24,2,13,7,34,9,32,12,36,14,15,16,17,18,19,20,44,21,33,26,27,28,29,30,31,38,39,40,41,42,43,2,25,3,42,4,27,5,28,6,29,7,22,8,19,9,36,12,24,13,37,14,26,15,39,16,40,17,41,18,30,20,32,31,43,34,46,4,15,5,16,6,17,8,31,9,24,10,37,13,25,14,38,19,43,20,36,22,34,27,39,28,40,29,41,30,42,45,46,3,14,4,11,5,12,6,13,8,35,10,25,15,27,16,28,17,29,19,31,21,37,26,38,32,40,33,41,34,42,1,4,7,38,8,23,9,12,10,13,14,18,16,24,17,25,19,35,20,28,21,29,31,39,32,36,33,37,42,44,3,9,7,26,8,11,12,16,13,17,15,23,18,30,19,27,20,24,21,25,22,38,28,32,29,33,31,35,37,43,44,45,2,8,7,14,11,15,18,26,19,23,22,30,27,31,29,35,33,39,34,38,41,43,2,4,5,8,6,11,7,12,10,15,13,19,14,18,17,23,21,27,22,26,25,31,30,34,33,35,37,39,38,40,3,6,7,10,9,11,12,13,14,16,18,20,21,23,22,24,25,27,26,28,29,31,30,32,34,36,40,42,3,8,7,9,10,11,14,15,16,19,17,18,20,22,24,26,28,30,32,34,36,38,40,41,42,43,3,5,6,8,9,10,12,14,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,41,42,43,44,3,4,7,8,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"48":[0,8,1,7,2,6,3,11,4,10,5,9,12,20,13,19,14,18,15,23,16,22,17,21,24,32,25,31,26,30,27,35,28,34,29,33,36,44,37,43,38,42,39,47,40,46,41,45,0,1,2,5,3,4,6,9,7,8,10,11,12,13,14,17,15,16,18,21,19,20,22,23,24,25,26,29,27,28,30,33,31,32,34,35,36,37,38,41,39,40,42,45,43,44,46,47,0,2,1,6,5,10,9,11,12,14,13,18,17,22,21,23,24,26,25,30,29,34,33,35,36,38,37,42,41,46,45,47,0,3,1,2,4,6,5,7,8,11,9,10,12,15,13,14,16,18,17,19,20,23,21,22,24,27,25,26,28,30,29,31,32,35,33,34,36,39,37,38,40,42,41,43,44,47,45,46,0,24,1,4,3,5,6,8,7,10,11,35,12,36,13,16,15,17,18,20,19,22,23,47,25,28,27,29,30,32,31,34,37,40,39,41,42,44,43,46,0,12,1,3,2,5,6,9,8,10,11,23,13,15,14,17,18,21,20,22,24,36,25,27,26,29,30,33,32,34,35,47,37,39,38,41,42,45,44,46,1,25,2,3,4,5,6,7,8,9,10,34,12,24,13,37,14,15,16,17,18,19,20,21,22,46,23,35,26,27,28,29,30,31,32,33,38,39,40,41,42,43,44,45,1,13,2,26,4,6,5,7,9,33,10,22,14,38,16,18,17,19,21,45,25,37,28,30,29,31,34,46,40,42,41,43,2,14,3,4,5,6,7,8,9,21,13,25,15,16,17,18,19,20,22,34,26,38,27,28,29,30,31,32,33,45,39,40,41,42,43,44,3,27,4,16,5,17,6,18,7,19,8,32,9,37,10,38,14,26,15,39,20,44,21,33,28,40,29,41,30,42,31,43,3,15,4,28,5,29,6,30,7,31,8,20,9,25,10,26,16,40,17,41,18,42,19,43,21,37,22,38,27,39,32,44,4,12,5,13,6,14,8,36,11,39,15,27,16,28,17,29,18,30,19,31,20,32,33,41,34,42,35,43,1,4,7,15,8,24,9,13,10,14,11,27,17,25,18,26,20,36,21,29,22,30,23,39,32,40,33,37,34,38,43,46,3,9,8,12,11,15,13,17,14,18,16,24,19,27,20,28,21,25,22,26,23,31,29,33,30,34,32,36,35,39,38,44,2,8,7,13,11,17,12,16,15,19,20,24,23,27,28,32,30,36,31,35,34,40,39,45,2,4,5,8,6,12,10,16,14,20,15,21,18,24,19,25,22,28,23,29,26,32,27,33,31,37,35,41,39,42,43,45,3,8,7,10,9,12,11,14,13,16,15,18,17,20,19,22,21,24,23,26,25,28,27,30,29,32,31,34,33,36,35,38,37,40,39,44,3,6,7,9,10,12,11,16,15,20,19,21,22,24,23,25,26,28,27,32,31,36,35,37,38,40,41,44,3,5,6,8,9,10,11,13,14,16,15,17,18,20,21,22,23,24,25,26,27,29,30,32,31,33,34,36,37,38,39,41,42,44,3,4,7,8,11,12,15,16,19,20,27,28,31,32,35,36,39,40,43,44],"49":[0,8,1,7,2,6,3,11,4,10,5,9,12,20,13,19,14,18,15,23,16,22,17,21,24,32,25,31,26,30,27,35,28,34,29,33,36,48,37,46,38,45,39,43,41,47,42,44,0,1,2,5,3,4,6,9,7,8,10,11,12,13,14,17,15,16,18,21,19,20,22,23,24,25,26,29,27,28,30,33,31,32,34,35,37,42,38,39,40,47,43,45,44,46,0,2,1,6,5,10,9,11,12,14,13,18,17,22,21,23,24,26,25,30,29,34,33,35,36,40,37,38,39,42,43,44,45,46,47,48,0,3,1,2,4,6,5,7,8,11,9,10,12,15,13,14,16,18,17,19,20,23,21,22,24,27,25,26,28,30,29,31,32,35,33,34,40,42,41,45,44,47,46,48,0,24,1,4,3,5,6,8,7,10,11,23,13,16,15,17,18,20,19,22,25,28,27,29,30,32,31,34,36,41,39,44,40,43,42,47,45,46,1,3,2,5,6,9,8,10,13,15,14,17,18,21,20,22,25,27,26,29,30,33,32,34,36,37,38,41,42,45,43,44,46,47,1,13,2,3,4,5,6,7,8,9,10,22,12,36,14,15,16,17,18,19,20,21,26,27,28,29,30,31,32,33,35,47,37,39,38,40,41,42,45,46,0,12,2,14,4,6,5,7,9,21,11,35,16,18,17,19,23,47,24,36,28,30,29,31,34,46,37,38,39,40,41,43,42,44,3,4,5,6,7,8,10,34,12,24,15,16,17,18,19,20,22,46,23,35,25,37,27,28,29,30,31,32,38,39,40,41,42,43,44,45,1,25,3,15,4,28,5,29,6,30,7,31,8,32,13,37,19,43,20,48,22,34,26,38,33,45,39,40,41,42,2,26,4,40,7,19,8,20,9,33,13,25,14,38,16,28,17,41,18,42,21,45,27,39,31,43,32,48,3,27,5,17,6,18,9,37,10,38,14,26,15,39,19,31,20,32,21,33,28,44,29,41,30,42,35,43,36,40,5,13,6,14,8,28,9,25,10,26,11,39,15,27,16,36,17,29,18,30,20,40,21,37,22,38,32,44,33,41,34,42,43,46,4,16,7,15,8,24,9,13,10,14,11,27,17,25,18,26,21,29,22,30,23,39,28,36,32,40,33,37,34,38,42,48,3,9,4,12,11,15,13,17,14,18,19,27,21,25,22,26,23,31,24,28,29,33,30,34,32,36,35,39,38,44,43,48,1,4,3,5,7,13,8,12,11,17,15,19,16,24,20,28,23,27,30,36,31,35,34,40,39,45,2,8,7,9,12,16,15,21,19,25,20,24,23,29,27,33,28,32,31,37,34,36,35,41,39,42,45,48,2,4,6,12,10,16,14,20,18,24,19,21,22,28,23,25,26,32,29,30,31,33,35,38,37,40,39,44,43,45,46,48,6,8,10,12,11,14,13,16,15,20,17,18,22,24,26,28,27,32,31,34,33,36,35,37,38,40,41,44,47,48,3,6,5,8,7,10,9,12,11,13,14,16,15,17,18,20,19,22,21,24,23,26,25,28,27,29,30,32,33,34,35,36,37,38,39,41,42,44,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,39,40,43,44],"50":[0,8,1,7,2,6,3,11,4,10,5,9,12,24,13,22,14,21,15,19,17,23,18,20,25,33,26,32,27,31,28,36,29,35,30,34,37,49,38,47,39,46,40,44,42,48,43,45,0,1,2,5,3,4,6,9,7,8,10,11,13,18,14,15,16,23,19,21,20,22,25,26,27,30,28,29,31,34,32,33,35,36,38,43,39,40,41,48,44,46,45,47,0,2,1,6,5,10,9,11,12,16,13,14,15,18,19,20,21,22,23,24,25,27,26,31,30,35,34,36,37,41,38,39,40,43,44,45,46,47,48,49,0,3,1,2,4,6,5,7,8,11,9,10,16,18,17,21,20,23,22,24,25,28,26,27,29,31,30,32,33,36,34,35,41,43,42,46,45,48,47,49,0,25,1,4,3,5,6,8,7,10,12,17,15,20,16,19,18,23,21,22,26,29,28,30,31,33,32,35,37,42,40,45,41,44,43,48,46,47,1,3,2,5,6,9,8,10,12,13,14,17,18,21,19,20,22,23,26,28,27,30,31,34,33,35,37,38,39,42,43,46,44,45,47,48,2,3,4,5,6,7,8,9,11,23,12,37,13,15,14,16,17,18,21,22,27,28,29,30,31,32,33,34,36,48,38,40,39,41,42,43,46,47,0,12,4,6,5,7,10,22,11,36,13,14,15,16,17,19,18,20,23,48,29,31,30,32,35,47,38,39,40,41,42,44,43,45,1,13,3,4,5,6,7,8,10,35,14,15,16,17,18,19,20,21,22,47,23,36,26,38,28,29,30,31,32,33,39,40,41,42,43,44,45,46,1,26,2,14,4,29,5,30,6,31,7,32,8,49,9,21,13,38,15,16,17,18,19,44,20,45,22,35,24,33,27,39,34,46,40,41,42,43,2,27,3,15,4,37,7,19,8,24,9,34,13,26,14,39,16,41,17,42,18,43,21,46,28,40,29,45,32,44,33,49,3,28,4,12,5,17,6,18,9,38,10,39,14,27,15,40,16,25,19,32,20,29,21,34,24,33,30,42,31,43,36,44,48,49,5,13,6,14,8,16,9,26,10,27,11,40,12,20,15,28,17,30,18,31,21,38,22,39,25,41,29,37,33,45,34,42,35,43,47,48,4,8,7,15,9,13,10,14,11,28,16,25,17,26,18,27,20,29,21,30,22,31,23,40,24,41,34,38,35,39,43,45,1,4,3,9,8,12,11,15,13,17,14,18,16,20,19,28,21,26,22,27,23,32,24,25,30,34,31,35,33,41,36,40,2,8,7,13,11,17,12,16,15,19,23,28,24,29,25,37,32,36,39,41,40,46,2,4,5,8,6,12,10,16,11,13,15,21,19,26,20,24,23,30,25,29,28,34,32,38,33,37,36,42,40,43,45,46,6,8,7,10,9,12,14,20,18,24,22,25,27,29,31,33,35,37,36,39,41,42,44,46,3,6,7,12,14,16,15,18,17,20,19,24,21,22,23,25,26,27,28,29,30,31,32,35,33,34,37,38,40,41,42,43,44,47,3,5,6,8,7,9,10,12,11,14,13,16,15,17,18,20,19,21,22,24,23,26,25,27,28,30,29,31,32,33,34,35,36,37,38,39,41,42,44,45,46,47,3,4,7,8,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,43,44,47,48],"51":[0,8,1,7,2,6,3,11,4,10,5,9,12,24,13,22,14,21,15,19,17,23,18,20,25,37,26,35,27,34,28,32,30,36,31,33,38,50,39,48,40,47,41,45,43,49,44,46,0,1,2,5,3,4,6,9,7,8,10,11,13,18,14,15,16,23,19,21,20,22,26,31,27,28,29,36,32,34,33,35,39,44,40,41,42,49,45,47,46,48,0,2,1,6,5,10,9,11,12,16,13,14,15,18,19,20,21,22,23,24,25,29,26,27,28,31,32,33,34,35,36,37,38,42,39,40,41,44,45,46,47,48,49,50,0,3,1,2,4,6,5,7,8,11,9,10,16,18,17,21,20,23,22,24,29,31,30,34,33,36,35,37,42,44,43,47,46,49,48,50,1,4,3,5,6,8,7,10,12,17,15,20,16,19,18,23,21,22,25,30,28,33,29,32,31,36,34,35,37,50,38,43,41,46,42,45,44,49,47,48,1,3,2,5,6,9,8,10,12,13,14,17,18,21,19,20,22,23,25,26,27,30,31,34,32,33,35,36,38,39,40,43,44,47,45,46,48,49,2,3,4,5,6,7,8,9,11,23,12,38,13,15,14,16,17,18,21,22,26,28,27,29,30,31,34,35,36,49,39,41,40,42,43,44,47,48,4,6,5,7,10,22,11,36,12,25,13,14,15,16,17,19,18,20,23,49,26,27,28,29,30,32,31,33,35,48,39,40,41,42,43,45,44,46,1,13,3,4,5,6,7,8,10,35,14,15,16,17,18,19,20,21,22,48,23,36,26,39,27,28,29,30,31,32,33,34,40,41,42,43,44,45,46,47,1,26,2,14,4,33,7,32,8,24,9,21,13,39,15,16,17,18,19,45,20,46,22,35,27,40,28,29,30,31,34,47,41,42,43,44,0,29,2,27,3,15,4,38,5,30,6,31,7,19,8,37,9,34,13,26,14,40,16,42,17,43,18,44,20,25,21,47,24,50,28,41,32,45,33,46,0,16,3,28,4,20,5,17,6,18,9,39,10,40,14,27,15,41,19,32,21,34,24,37,29,42,30,43,31,44,33,38,36,45,49,50,0,12,5,13,6,14,8,29,9,26,10,27,11,41,15,28,17,30,18,31,21,39,22,40,24,42,25,33,34,43,35,44,37,46,4,12,7,15,9,13,10,14,11,28,16,29,17,26,18,27,20,25,21,30,22,31,23,41,33,38,34,39,35,40,37,42,46,48,1,4,3,9,8,16,11,15,13,17,14,18,19,28,21,26,22,27,23,32,24,29,30,34,31,35,36,41,42,45,48,49,7,13,8,20,11,17,15,19,16,25,23,28,24,33,29,38,32,36,41,47,42,44,8,12,15,21,16,20,19,26,23,30,24,25,28,34,29,33,32,39,36,43,37,38,46,47,2,8,6,12,10,16,14,20,18,24,22,25,27,29,31,33,32,34,35,37,38,40,41,43,44,46,45,47,2,4,3,8,5,6,7,10,9,12,11,14,13,16,15,20,17,18,19,22,21,24,23,27,25,26,28,31,29,30,33,35,36,38,37,39,40,42,45,46,47,48,3,5,6,8,7,12,11,16,15,17,18,20,19,24,23,25,26,27,28,29,30,31,32,33,34,35,36,39,40,41,42,43,3,4,5,6,7,9,10,12,11,13,14,16,17,18,19,21,22,24,25,26,27,28,29,30,31,32,33,34,36,37,38,39,41,42,43,44,7,8,11,12,15,16,19,20,23,24,35,36,39,40],"52":[0,12,1,10,2,9,3,7,5,11,6,8,13,25,14,23,15,22,16,20,18,24,19,21,26,38,27,36,28,35,29,33,31,37,32,34,39,51,40,49,41,48,42,46,44,50,45,47,1,6,2,3,4,11,7,9,8,10,14,19,15,16,17,24,20,22,21,23,27,32,28,29,30,37,33,35,34,36,40,45,41,42,43,50,46,48,47,49,0,4,1,2,3,6,7,8,9,10,11,12,13,17,14,15,16,19,20,21,22,23,24,25,26,30,27,28,29,32,33,34,35,36,37,38,39,43,40,41,42,45,46,47,48,49,50,51,4,6,5,9,8,11,10,12,17,19,18,22,21,24,23,25,30,32,31,35,34,37,36,38,43,45,44,48,47,50,49,51,0,5,3,8,4,7,6,11,9,10,12,51,13,18,16,21,17,20,19,24,22,23,25,38,26,31,29,34,30,33,32,37,35,36,39,44,42,47,43,46,45,50,48,49,0,1,2,5,6,9,7,8,10,11,12,25,13,14,15,18,19,22,20,21,23,24,26,27,28,31,32,35,33,34,36,37,38,51,39,40,41,44,45,48,46,47,49,50,0,26,1,3,2,4,5,6,9,10,11,24,13,39,14,16,15,17,18,19,22,23,25,38,27,29,28,30,31,32,35,36,37,50,40,42,41,43,44,45,48,49,0,13,1,2,3,4,5,7,6,8,10,23,11,37,14,15,16,17,18,20,19,21,24,50,26,39,27,28,29,30,31,33,32,34,36,49,40,41,42,43,44,46,45,47,1,14,2,3,4,5,6,7,8,9,10,36,13,26,15,16,17,18,19,20,21,22,23,49,24,37,27,40,28,29,30,31,32,33,34,35,41,42,43,44,45,46,47,48,1,27,2,15,3,4,5,6,7,33,8,34,9,22,14,40,16,17,18,19,20,46,21,47,23,36,28,41,29,30,31,32,35,48,42,43,44,45,2,28,3,16,4,43,5,31,6,32,7,20,8,21,9,35,14,27,15,41,17,30,18,44,19,45,22,48,29,42,33,46,34,47,3,29,4,17,5,18,6,19,8,26,9,40,10,41,15,28,16,42,20,33,21,34,22,35,30,43,31,44,32,45,37,46,38,47,4,13,5,14,6,15,9,27,10,28,11,42,12,17,16,29,18,31,19,32,21,39,22,40,23,41,25,43,35,44,36,45,47,50,1,4,7,16,8,13,9,14,10,15,11,29,12,21,17,30,18,27,19,28,22,31,23,32,24,42,25,39,35,40,36,41,38,43,2,8,3,9,11,16,14,18,15,19,17,26,20,29,22,27,23,28,24,33,30,34,31,35,32,36,37,42,43,49,2,4,5,8,7,14,11,18,12,17,16,20,21,26,24,29,25,30,33,37,34,39,42,48,47,49,3,8,12,13,16,22,17,21,20,27,24,31,25,26,29,35,30,34,33,40,37,44,38,39,43,48,6,12,10,13,15,17,19,21,23,25,24,27,26,28,30,32,34,36,37,40,38,41,39,45,3,6,7,12,9,10,11,13,14,15,16,19,17,18,20,23,21,22,25,26,28,31,29,30,32,35,33,34,36,38,39,44,41,42,45,46,3,5,6,8,7,9,10,12,11,14,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,39,41,42,44,43,45,46,48,3,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"53":[0,12,1,10,2,9,3,7,5,11,6,8,13,25,14,23,15,22,16,20,18,24,19,21,26,38,27,36,28,35,29,33,31,37,32,34,39,45,40,50,41,51,42,49,43,44,46,52,47,48,1,6,2,3,4,11,7,9,8,10,14,19,15,16,17,24,20,22,21,23,27,32,28,29,30,37,33,35,34,36,40,41,42,46,43,47,44,48,45,49,50,51,0,4,1,2,3,6,7,8,9,10,11,12,13,17,14,15,16,19,20,21,22,23,24,25,26,30,27,28,29,32,33,34,35,36,37,38,39,43,40,42,44,45,46,47,48,52,49,51,4,6,5,9,8,11,10,12,17,19,18,22,21,24,23,25,30,32,31,35,34,37,36,38,39,40,41,48,42,46,43,50,45,49,51,52,0,5,3,8,4,7,6,11,9,10,13,18,16,21,17,20,19,24,22,23,25,38,26,31,29,34,30,33,32,37,35,36,41,44,43,46,45,48,47,50,0,1,2,5,6,9,7,8,10,11,13,14,15,18,19,22,20,21,23,24,26,27,28,31,32,35,33,34,36,37,40,41,42,43,45,46,48,49,50,51,0,26,1,3,2,4,5,6,9,10,11,24,13,39,14,16,15,17,18,19,22,23,27,29,28,30,31,32,35,36,40,42,41,43,44,45,46,47,48,50,49,51,0,13,1,2,3,4,5,7,6,8,10,23,12,51,14,15,16,17,18,20,19,21,26,39,27,28,29,30,31,33,32,34,41,42,43,46,45,48,49,50,1,27,2,3,4,5,6,7,8,9,12,25,13,26,14,40,15,16,17,18,19,20,21,22,28,29,30,31,32,33,34,35,37,50,38,51,43,44,45,46,47,48,1,14,2,15,3,4,5,6,7,33,8,34,9,35,11,37,16,17,18,19,22,52,24,50,25,38,27,40,28,41,29,30,31,32,42,43,44,45,46,47,48,49,2,28,3,16,4,43,5,31,6,32,9,22,14,27,15,41,17,30,19,45,20,46,21,47,24,37,29,42,35,52,36,49,3,29,4,17,5,44,6,19,7,20,8,21,10,36,15,28,16,42,18,31,22,35,23,49,30,43,32,45,33,46,34,47,4,13,6,15,8,26,10,41,11,42,12,17,16,29,19,32,20,33,21,34,23,36,25,43,31,48,37,46,38,47,40,44,1,4,7,16,8,13,9,31,10,28,11,29,17,30,18,40,21,39,22,44,23,41,24,42,35,48,36,45,38,43,47,52,2,8,5,18,9,27,10,15,11,16,12,21,17,26,19,28,20,29,23,32,24,33,25,39,30,34,31,40,35,44,36,41,37,42,43,49,46,47,2,4,5,14,12,17,15,19,16,20,21,26,23,28,24,29,25,30,27,31,32,36,33,37,34,39,35,40,42,48,49,50,5,8,9,14,12,13,17,21,18,27,22,31,25,26,30,34,33,40,37,44,38,39,43,48,47,49,50,52,3,9,6,12,10,13,14,18,15,17,19,21,22,27,23,25,26,28,30,32,31,35,34,36,38,41,39,45,49,50,51,52,3,6,7,14,10,12,11,18,16,22,20,27,24,31,25,26,29,35,32,33,36,37,38,40,39,42,41,44,45,46,3,8,7,9,11,15,13,14,16,19,17,18,20,23,21,22,24,27,28,31,29,30,34,35,36,38,37,40,39,44,43,45,46,48,3,5,6,8,7,10,9,12,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,34,33,35,37,38,39,41,42,44,45,46,47,48,3,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,39,40,43,44],"54":[0,8,1,9,2,7,3,5,4,6,10,23,11,22,12,25,13,24,14,18,15,16,17,21,19,20,26,39,27,38,28,41,29,40,30,34,31,32,33,37,35,36,42,50,43,49,44,48,45,53,46,52,47,51,0,2,1,4,5,8,7,9,10,15,11,17,12,19,13,14,16,23,18,24,20,25,21,22,26,31,27,33,28,35,29,30,32,39,34,40,36,41,37,38,42,43,44,47,45,46,48,51,49,50,52,53,0,3,2,4,5,7,6,9,10,11,12,13,14,15,16,18,17,19,20,21,22,23,24,25,26,27,28,29,30,31,32,34,33,35,36,37,38,39,40,41,42,44,43,48,47,52,51,53,0,1,3,6,8,9,10,12,11,13,14,20,15,21,16,17,18,19,22,24,23,25,26,28,27,29,30,36,31,37,32,33,34,35,38,40,39,41,42,45,43,44,46,48,47,49,50,53,51,52,0,26,1,5,2,3,4,8,6,7,10,42,11,12,13,22,14,16,15,17,18,20,19,21,23,24,27,28,29,38,30,32,31,33,34,36,35,37,39,40,41,53,43,46,45,47,48,50,49,52,0,10,1,2,3,5,4,6,7,8,11,14,12,16,15,18,17,20,19,23,21,24,26,42,27,30,28,32,31,34,33,36,35,39,37,40,43,45,44,47,48,51,50,52,1,27,2,3,4,5,6,7,10,26,11,43,12,14,13,16,19,22,21,23,28,30,29,32,35,38,37,39,40,52,44,45,46,47,48,49,50,51,1,11,3,4,5,6,7,25,9,39,12,28,13,15,16,18,17,19,20,22,23,51,27,43,29,31,32,34,33,35,36,38,46,48,47,49,2,28,6,24,7,41,9,23,11,27,13,14,15,16,17,18,19,20,21,22,25,53,29,30,31,32,33,34,35,36,37,38,39,51,45,46,47,48,49,50,4,46,5,47,6,40,8,38,13,29,14,30,15,31,16,17,18,19,20,48,21,49,22,50,23,39,24,52,25,41,28,36,32,33,34,35,3,29,4,14,5,15,8,22,18,34,19,35,20,28,24,40,30,42,31,43,32,44,33,45,36,48,38,50,2,32,3,33,4,10,5,11,8,18,9,19,16,44,17,45,22,38,23,43,28,36,29,37,34,46,35,47,40,48,1,4,2,12,3,13,8,26,9,27,14,18,15,19,16,32,17,33,21,29,22,42,24,44,25,45,30,34,31,35,37,49,38,46,39,47,48,50,6,32,7,33,8,10,9,11,12,16,13,17,14,26,15,27,18,30,19,31,22,34,23,35,29,37,38,42,39,43,40,44,41,49,2,8,3,9,6,20,7,21,14,18,15,19,22