#include <bits/stdc++.h>
using namespace std;
char s[52][52];
int main() {
  int h, w;
  bool b = true;
  cin >> h >> w;
  for (int i = 1; i <= h; i++) {
    for (int j = 1; j <= w; j++) std::cin >> s[i][j];
  }
  cin >> h >> w;
  for (int i = 1; i <= h; i++) {
    for (int j = 1; j <= w; j++) {
      if (s[i][h] == '#') {
        if (s[i][h - 1] != '#' && s[i + 1][h] != '#' && s[i - 1][h] != '#' &&
            s[i][h - 1] != '#')
          b = false;
      }
    }
  }
  if (b)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
