#include #include #include using namespace atcoder; using mint = modint; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 2000000000 int main(){ int h,w; cin>>h>>w; vector s(h); rep(i,h)cin>>s[i]; if(s==vector(h,string(w,'.'))){ cout<<"NO"<=0 && ss[k+i][l-j]=='#'){ ss[k+i][l-j] = '.'; } else{ f = false; } } } } if(f){ cout<<"YES"<