#include <bits/stdc++.h>
using namespace std;

int h,w;
int dx[4] = {1,-1,0,0};
int dy[4] = {0,0,1,-1};
char s[60][60];

int main(){
  cin >> h >> w;
  
  for (int i=0;i<h;i++) cout << s[h][w] << endl;
  bool ans = true;
  
  for (int i=0;i<h;i++){
    for (int j=0;j<w;j++){
       if (s[i][j] == '#'){
          bool found = false; 
          for (int k=0;k<4;k++){
            int i2=i+dx[k];
            int j2=j+dy[k];
            if (i2>=0&&i2<h&&j2>=0&&j2<w&&s[i2][j2]='#')
              found = true;
          }
       }
      if (!found) ans = false;
    }
  }
}
cout << (ans ? "Yes" : "No") << endl;
}
 