#include using namespace std; int main(){ int n; cin>>n; vector grid(n); for(int i=0;i>grid[i]; set ng_col,ng_row; int ans=0; for(int i=0;i