#include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int m,n; cin>>m>>n; vector row(m,1),col(n,1); vector > B(m,vector(n)); int sum=0; for(int i=0;i>B[i][j]; row[i]=B[i][j]&row[i]; col[j]=B[i][j]&col[j]; sum+=B[i][j]; } } if(sum==0){ cout<<"YES"< > A(m,vector(n)); for(int i=0;i