#include using namespace std; #define rep(i,N) repf(i,0,N) #define reps(i,N) repfs(i,0,N) #define repf(i,a,b) for(int i=a;i=0;i--) #define reprs(i,N) for(int i=N;i>0;i--) #define d(a) if(isDebugMode) cout<<#a<<"="< P; const int INF = 100000000; const int MOD = 1000000007; const int dx[4] = { 0, 1, 0,-1}; const int dy[4] = { 1, 0,-1, 0}; bool isDebugMode=1; //--------------------------------------// int h,w; char m[50][50]; int bc=0; bool d[100][100]; int tx=-1,ty; void setd(){ rep(i,h) rep(j,w) d[i][j]=(m[i][j]=='#'); d[ty][tx]=false; } void solve(){ if(bc%2==1) {cout<<"NO"<>h>>w; rep(i,h){ rep(j,w) { cin>>m[i][j]; if(m[i][j]=='#') bc++; } } solve(); return 0; }