ralph magic field divide nm block that n row m column field Ralph integer block however magic field do not work properly it work product integer row column equal k k 1 1now Ralph want figure number way number block way magic field work properly two way consider different exist block number way second way different you ask output answer modulo 10000000071097note range number block prove answer infinity