#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int h, w;
  cin >> h >> w;
  bool result = true;
  vector<vector<char>> a(h, vector<char>(w));
  for (int i = 0; i < (int)(h); i++) {
    for (int j = 0; j < (int)(w); j++) {
      cin >> a.at(i).at(j);
      bool resulta = true;
      for (int k = (-1); k < (int)(2); k++) {
        for (int l = (-1); l < (int)(2); l++) {
          if (i + k < 0 || j + l < 0 || i + k >= h || j + l >= w) continue;
          if (a.at(i + k).at(j + l) == '#') {
            resulta = false;
            break;
          }
        }
      }
      if (resulta) result = false;
    }
  }
  if (result)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
}
