p Hash[2,36,238782,454374808,144,32814836,4,554339559,58814,520986437,111744,297236648,90,279097713,1942902,114140798,151236,987179407,752,619036289,700452,549057875,300240,373228583,2359296,86106881,2005794,279939077,2359278,626367168,700452,549057875,30,10199246,18,902102979,700452,549057875,6,121788,4356,935020271,36810,421246711][gets.to_i*gets.split[0].to_i]