#include #include #include #define pb push_back #define mp make_pair #define ld long double #define ll long long #define ull unsigned long long using namespace std; //#define f cin //#define g cout #define Block -1 //ifstream f("gigel.in"); //ofstream g("gigel.out"); int N,M,a[110][110],b[110][110],sol; void Fill(int i,int j) { a[i][j]=max(a[i][j],1); sol=max(sol,a[i][j]); if(j