#include #include using namespace std; #define HMAX 50 int main(){ int H,W; string s[HMAX]; cin>>H>>W; for(int i=0;i>s[i]; for(int i=0;i=H||l+j>=W||stmp[k+i][l+j]!='#') f=false; else stmp[k][l]='.',stmp[k+i][l+j]='.'; } } } if(f){ cout<<"YES"<