Nastya come informatics lesson teacher way little bit famous give follow tasktwo matrix a b give size n time m Nastya perform follow operation matrix a unlimited number time square square submatrix a transpose ie element submatrix ith row jth column submatrix jth row ith column transpose transpose submatrix place matrix a Nastyas task check possible transform matrix a matrix B Example operation as require lot operation ask answer question nastyaa square submatrix matrix M matrix consist element come row indece x x1 dot xk1 matrix M come column indece y y1 dot yk1 matrix M k size square submatrix in word square submatrix set element source matrix form solid square ie hole