h, w = list(map(int, input().split()))

s = [eval(input()) for i in range(h)]

flag = True



for i in range(h):

  for j in range(w):

    if s[i][j] == "#":

      top = max(0, i-1)

      bottom = min(h-1, i+1)

      right = min(w-1, j+1)

      left = max(0, j-1)

      if s[i][right] != "#" and s[i][left] != "#" and s[top][j] != "#" and s[bottom][j] != "#":

        flag = False

        break

  if flag == False:

    break



if flag:

  print("Yes")

else:

  print("No")
h, w = list(map(int, input().split()))

s = [eval(input()) for i in range(h)]



for i in range(h):

  for j in range(w):

    if s[i][j] == "#":

      top = max(0, i-1)

      bottom = min(h-1, i+1)

      right = min(w-1, j+1)

      left = max(0, j-1)

      if s[i][right] != "#" and s[i][left] != "#" and s[top][j] != "#" and s[bottom][j] != "#":

        print("No")

        exit()



print("Yes")
h, w = list(map(int, input().split()))
s = [eval(input()) for i in range(h)]
flag = True
for i in range(h):
    for j in range(w):
        if s[i][j] == "#":
            top = max(0, i - 1)
            bottom = min(h - 1, i + 1)
            right = min(w - 1, j + 1)
            left = max(0, j - 1)
            if (
                s[i][right] != "#"
                and s[i][left] != "#"
                and s[top][j] != "#"
                and s[bottom][j] != "#"
            ):
                flag = False
                break
    if flag == False:
        break
if flag:
    print("Yes")
else:
    print("No")

h, w = list(map(int, input().split()))
s = [eval(input()) for i in range(h)]
for i in range(h):
    for j in range(w):
        if s[i][j] == "#":
            top = max(0, i - 1)
            bottom = min(h - 1, i + 1)
            right = min(w - 1, j + 1)
            left = max(0, j - 1)
            if (
                s[i][right] != "#"
                and s[i][left] != "#"
                and s[top][j] != "#"
                and s[bottom][j] != "#"
            ):
                print("No")
                exit()
print("Yes")

-flag = True -                flag = False -                break -    if flag == False: -        break -if flag: -    print("Yes") -else: -    print("No") +                print("No") +                exit() +print("Yes")