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

S = ["."*(w+2)] + [ "."+eval(input())+"." for _ in range(h) ] + ["."*(w+2)]

for i in range(h+2):

  for j in range(w+2):

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

      for k in range(4):

        if S[i+1][j] != "#" and S[i][j+1] != "#" and S[i-1][j] != "#" and S[i][j-1] != "#":

          print("No")

          exit()

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

S = ["."*(w+2)] + [ "."+eval(input())+"." for _ in range(h) ] + ["."*(w+2)]

for i in range(h+2):

  for j in range(w+2):

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

      if S[i+1][j] != "#" and S[i][j+1] != "#" and S[i-1][j] != "#" and S[i][j-1] != "#":

        print("No")

        exit()

print("Yes")

h, w = list(map(int, input().split()))
S = ["." * (w + 2)] + ["." + eval(input()) + "." for _ in range(h)] + ["." * (w + 2)]
for i in range(h + 2):
    for j in range(w + 2):
        if S[i][j] == "#":
            for k in range(4):
                if (
                    S[i + 1][j] != "#"
                    and S[i][j + 1] != "#"
                    and S[i - 1][j] != "#"
                    and S[i][j - 1] != "#"
                ):
                    print("No")
                    exit()
print("Yes")

h, w = list(map(int, input().split()))
S = ["." * (w + 2)] + ["." + eval(input()) + "." for _ in range(h)] + ["." * (w + 2)]
for i in range(h + 2):
    for j in range(w + 2):
        if S[i][j] == "#":
            if (
                S[i + 1][j] != "#"
                and S[i][j + 1] != "#"
                and S[i - 1][j] != "#"
                and S[i][j - 1] != "#"
            ):
                print("No")
                exit()
print("Yes")

-            for k in range(4): -                if ( -                    S[i + 1][j] != "#" -                    and S[i][j + 1] != "#" -                    and S[i - 1][j] != "#" -                    and S[i][j - 1] != "#" -                ): -                    print("No") -                    exit() +            if ( +                S[i + 1][j] != "#" +                and S[i][j + 1] != "#" +                and S[i - 1][j] != "#" +                and S[i][j - 1] != "#" +            ): +                print("No") +                exit()