H,W=list(map(int,input().split()))



L=[]

l=["." for i in range(W+2)]

L.append(l)

for i in range(H):

    a=list(eval(input()))

    a=["."]+a+["."]

    L.append(a)

L.append(l)

#print(L)



X=[1,-1,0,0]

Y=[0,0,1,-1]



for i in range(1,H+1):

    for j in range(1,W+1):

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

            F=1

            for k in range(4):

                if L[i+X[k]][j+Y[k]]=="#":

                    F=0

            if F==1:

                print("No")

                exit()

print("Yes")

                 
H,W=list(map(int,input().split()))



L=[]

l=["." for i in range(W+2)]

L.append(l)

for i in range(H):

    S=["."]+list(eval(input()))+["."]

    L.append(S)

L.append(l)

#print(L)

X=[1,-1,0,0]

Y=[0,0,1,-1]

for h in range(1,H+1):

    for w in range(1,W+1):

        if L[h][w]=="#":

            F=0

            for i in range(4):

                if L[h+X[i]][w+Y[i]]=="#":

                    F=1

            if F==0:

                print("No")

                exit()

print("Yes")
H, W = list(map(int, input().split()))
L = []
l = ["." for i in range(W + 2)]
L.append(l)
for i in range(H):
    a = list(eval(input()))
    a = ["."] + a + ["."]
    L.append(a)
L.append(l)
# print(L)
X = [1, -1, 0, 0]
Y = [0, 0, 1, -1]
for i in range(1, H + 1):
    for j in range(1, W + 1):
        if L[i][j] == "#":
            F = 1
            for k in range(4):
                if L[i + X[k]][j + Y[k]] == "#":
                    F = 0
            if F == 1:
                print("No")
                exit()
print("Yes")

H, W = list(map(int, input().split()))
L = []
l = ["." for i in range(W + 2)]
L.append(l)
for i in range(H):
    S = ["."] + list(eval(input())) + ["."]
    L.append(S)
L.append(l)
# print(L)
X = [1, -1, 0, 0]
Y = [0, 0, 1, -1]
for h in range(1, H + 1):
    for w in range(1, W + 1):
        if L[h][w] == "#":
            F = 0
            for i in range(4):
                if L[h + X[i]][w + Y[i]] == "#":
                    F = 1
            if F == 0:
                print("No")
                exit()
print("Yes")

-    a = list(eval(input())) -    a = ["."] + a + ["."] -    L.append(a) +    S = ["."] + list(eval(input())) + ["."] +    L.append(S) -for i in range(1, H + 1): -    for j in range(1, W + 1): -        if L[i][j] == "#": -            F = 1 -            for k in range(4): -                if L[i + X[k]][j + Y[k]] == "#": -                    F = 0 -            if F == 1: +for h in range(1, H + 1): +    for w in range(1, W + 1): +        if L[h][w] == "#": +            F = 0 +            for i in range(4): +                if L[h + X[i]][w + Y[i]] == "#": +                    F = 1 +            if F == 0: