#include using namespace std; typedef long long ll; int h,w; bool func(int y,int x,vector s){ for(int i=0;i= h || nj >= w)return false; if(s[ni][nj] != '#')return false; s[ni][nj] = s[ni][nj] = '.'; } } } return true; } int main(void) { cin >> h >> w; vector s(h); for(int i=0;i> s[i]; } int cnt = 0; bool f = false; for(int i=0;i=2 ? "YES" : "NO" ) << endl; return 0; }