#include using namespace std; int main() { int n,m,i,wi,bi,j,sn=0,sa=0; cin>>n>>m; for(i=1;i<=n;i++) for(j=1;j<=m;j++) { cin>>wi>>bi; if(wi