#include <bits/stdc++.h>
using namespace std;
int main() {
  int H, W;
  bool flag = true;
  cin >> H, W;
  vector<vector<char>> s(H, vector<char>(W));
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      cin >> s[i][j];
    }
  }
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if (s[i][j] == '#') {
        if (i == 0 && j == 0)
          if (s[i + 1][j] == '#' || s[i][j + 1] == '#')
            continue;
          else if (i == H - 1 && j == 0) {
            if (s[i - 1][j] == '#' || s[i][j + 1]) continue;
          } else if (i == 0 && j == W - 1)
            if (s[i][i - 1] == '#' || s[i + 1][j] == '#')
              continue;
            else if (i == H - 1 && j == W - 1)
              if (s[i - 1][j] == '#' || s[i][j - 1] == '#')
                continue;
              else if (i == 0)
                if (s[i][j - 1] == '#' || s[i][j + 1] == '#' ||
                    s[i + 1][j] == '#')
                  continue;
                else if (j == 0)
                  if (s[i - 1][j] == '#' || s[i + 1][j] == '#' ||
                      s[i][j + 1] == '#')
                    continue;
                  else if (i == H - 1)
                    if (s[i][j - 1] == '#' || s[i][j + 1] == '#' || s[i - 1][j])
                      continue;
                    else if (j == W - 1)
                      if (s[i - 1][j] == '#' || s[i + 1][j] == '#' ||
                          s[i][j - 1] == '#')
                        continue;
                      else if (s[i - 1][j] == '#' || s[i + 1][j] == '#' ||
                               s[i][j - 1] == '#' || s[i][j + 1] == '#')
                        continue;
      }
    }
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
