#include <bits/stdc++.h>
using namespace std;
const int N = 1005;
char s[N][N];
bool seen[N][N];
void check(int x, int y) {
  bool ok = true;
  for (int i = 0; i < 3; ++i) {
    for (int j = 0; j < 3; ++j) {
      if (i == 1 and j == 1) continue;
      if (s[x + i][y + j] == '.') ok = false;
    }
  }
  if (ok == false) return;
  for (int i = 0; i < 3; ++i) {
    for (int j = 0; j < 3; ++j) {
      if (i == 1 and j == 1) continue;
      seen[x + i][y + j] = true;
    }
  }
}
int main() {
  int n, m;
  scanf("%d %d", &n, &m);
  for (int i = 0; i < n; ++i) scanf("%s", s[i]);
  for (int i = 0; i + 2 < n; ++i)
    for (int j = 0; j + 2 < m; ++j)
      if (s[i][j] == '#') check(i, j);
  for (int i = 0; i < n; ++i)
    for (int j = 0; j < m; ++j) {
      if (s[i][j] == '.') {
        if (seen[i][j]) return !printf("NO");
      } else {
        if (!seen[i][j]) return !printf("No");
      }
    }
  puts("Yes");
}
