#include <bits/stdc++.h>
using namespace std;
template <class S, class T>
pair<S, T> operator+(const pair<S, T> &s, const pair<S, T> &t) {
  return pair<S, T>(s.first + t.first, s.second + t.second);
}
template <class S, class T>
pair<S, T> operator-(const pair<S, T> &s, const pair<S, T> &t) {
  return pair<S, T>(s.first - t.first, s.second - t.second);
}
template <class S, class T>
ostream &operator<<(ostream &os, pair<S, T> p) {
  os << "(" << p.first << ", " << p.second << ")";
  return os;
}
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long inf = 1000000001;
const long long INF = 2e18;
const long long MOD = 1000000007;
const double pi = 3.14159265358979323846;
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int dx2[8] = {1, 1, 0, -1, -1, -1, 0, 1}, dy2[8] = {0, 1, 1, 1, 0, -1, -1, -1};
int main() {
  int h, w;
  cin >> h >> w;
  vector<vector<char> > a(h + 2, vector<char>(w + 2, '.'));
  for (long long i = 1; i <= (long long)(h); i++) {
    for (long long j = 1; j <= (long long)(w); j++) {
      char s;
      cin >> s;
      a[i][j] = s;
    }
  }
  for (long long i = 1; i <= (long long)(h); i++) {
    for (long long j = 1; j <= (long long)(w); j++) {
      cout << a[i][j];
    }
    cout << endl;
  }
  for (long long i = 1; i <= (long long)(h); i++) {
    for (long long j = 1; j <= (long long)(w); j++) {
      if (a[i][j] == '.') {
        continue;
      }
      stack<pair<int, int> > st;
      st.push(pair<int, int>(i, j));
      a[i][j] = '.';
      bool flag = false;
      while (!st.empty()) {
        pair<int, int> now = st.top();
        st.pop();
        for (long long k = 0; k < (long long)(4); k++) {
          int ni = now.first + dx[k], nj = now.second + dy[k];
          if (a[ni][nj] == '#') {
            flag = true;
            a[ni][nj] = '.';
            st.push(pair<int, int>(ni, nj));
          }
        }
      }
      if (!flag) {
        cout << "No" << endl;
        return 0;
      }
    }
  }
  cout << "Yes" << endl;
}
