#include <fstream>
#include <climits>
using namespace std;
ifstream fin (“mouse.in”);
ofstream fout (“mouse.out”);
const int nMAX = 100;
const int mMAX = 100;
int n, m;
int mat[nMAX + 1][mMAX + 1];
int main()
{
fin >> n >> m;
#include <fstream>
#include <climits>
using namespace std;
ifstream fin (“mouse.in”);
ofstream fout (“mouse.out”);
const int nMAX = 100;
const int mMAX = 100;
int n, m;
int mat[nMAX + 1][mMAX + 1];
int main()
{
fin >> n >> m;