gyou,retu=map(int,input().split())

l=[input() for _ in range(gyou)]

d=[(0,1),(1,0),(-1,0),(0,-1)]

s=0

for g in range(gyou):

  for r in range(retu):

    if l[g][r]=="#":

      k=0

      for x,y in d:

        try:

          if l[g+x][r+y]=="#" and g+x>=0 and r+y>=0:

            k+=1

        except IndexError:

          pass

      if k==0:

        s+=1

        break

    if s==1:

      break

  if s==1:

    break

print("No") if s==1 else print("Yes")

gyou,retu=list(map(int,input().split()))

l=[eval(input()) for _ in range(gyou)]

d=[(0,1),(1,0),(-1,0),(0,-1)]

for g in range(gyou):

  for r in range(retu):

    if l[g][r]=="#":

      k=0

      for x,y in d:

        try:

          if l[g+x][r+y]=="#" and g+x>=0 and r+y>=0:

            k+=1

        except IndexError:

          pass

      if k==0:

        print("No")

        exit()

print("Yes")
gyou, retu = map(int, input().split())
l = [input() for _ in range(gyou)]
d = [(0, 1), (1, 0), (-1, 0), (0, -1)]
s = 0
for g in range(gyou):
    for r in range(retu):
        if l[g][r] == "#":
            k = 0
            for x, y in d:
                try:
                    if l[g + x][r + y] == "#" and g + x >= 0 and r + y >= 0:
                        k += 1
                except IndexError:
                    pass
            if k == 0:
                s += 1
                break
        if s == 1:
            break
    if s == 1:
        break
print("No") if s == 1 else print("Yes")

gyou, retu = list(map(int, input().split()))
l = [eval(input()) for _ in range(gyou)]
d = [(0, 1), (1, 0), (-1, 0), (0, -1)]
for g in range(gyou):
    for r in range(retu):
        if l[g][r] == "#":
            k = 0
            for x, y in d:
                try:
                    if l[g + x][r + y] == "#" and g + x >= 0 and r + y >= 0:
                        k += 1
                except IndexError:
                    pass
            if k == 0:
                print("No")
                exit()
print("Yes")

-gyou, retu = map(int, input().split()) -l = [input() for _ in range(gyou)] +gyou, retu = list(map(int, input().split())) +l = [eval(input()) for _ in range(gyou)] -s = 0 -                s += 1 -                break -        if s == 1: -            break -    if s == 1: -        break -print("No") if s == 1 else print("Yes") +                print("No") +                exit() +print("Yes")