#include using namespace std; int main(){ int H, W; cin >> H >> W; vector S(H); for(int i=0; i> S[i]; bool ok1 = true, ok2 = true; for(int i=0; i found; for(int j=0; j found; for(int i=0; i