#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 || j+x >= w)return false; if(s[i+y][j+x] != '#')return false; s[i+y][j+x] = '.'; } } } return true; } int main(void) { cin >> h >> w; vector s(h); for(int i=0;i> s[i]; } int cnt = 0; for(int i=0;i=2) ?"YES":"NO") << endl; return 0; }