import sequtils,strutils var M, K : int mat : array[51,array[51, int64]] modnum : int64 = 1000_000_007 (M, K) = stdin.readline.split.map(parseInt) for n in 0..