the first line of inut consists of two integers-matrix row and matrix col, representing the number of rows(n) and the number of columns(m) in the matrix, respectively. the next m lines consist of n space-separaed integers representing the elements in each cell of the matrix.