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

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

dx=[1,-1,0,0]

dy=[0,0,1,-1]

for i in range(h):

    for j in range(w):

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

            judge=False

            for k in range(4):

                x=i+dx[k]

                y=j+dy[k]

                if 0<=x and x<h and 0<=y and y<w and s[x][y]=="#":

                    judge=True

            if judge==False:

                print("No")

                exit()

print("Yes")

                    

        

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

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

def check(x,y):

    dx=[0,0,1,-1]

    dy=[1,-1,0,0]

    jugde=False

    for k in range(4):

        i=x+dx[k]

        j=y+dy[k]

        if 0<=i and i<h and 0<=j and j<w and t[i][j]=="#":

            jugde=True

    if jugde==False:

        return False

    return True

for i in range(h):

    for j in range(w):

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

            if check(i,j):

                jugde=True

            else:

                print("No")

                exit()

print("Yes")

h, w = list(map(int, input().split()))
s = [list(eval(input())) for i in range(h)]
dx = [1, -1, 0, 0]
dy = [0, 0, 1, -1]
for i in range(h):
    for j in range(w):
        if s[i][j] == "#":
            judge = False
            for k in range(4):
                x = i + dx[k]
                y = j + dy[k]
                if 0 <= x and x < h and 0 <= y and y < w and s[x][y] == "#":
                    judge = True
            if judge == False:
                print("No")
                exit()
print("Yes")

h, w = list(map(int, input().split()))
t = [list(eval(input())) for i in range(h)]


def check(x, y):
    dx = [0, 0, 1, -1]
    dy = [1, -1, 0, 0]
    jugde = False
    for k in range(4):
        i = x + dx[k]
        j = y + dy[k]
        if 0 <= i and i < h and 0 <= j and j < w and t[i][j] == "#":
            jugde = True
    if jugde == False:
        return False
    return True


for i in range(h):
    for j in range(w):
        if t[i][j] == "#":
            if check(i, j):
                jugde = True
            else:
                print("No")
                exit()
print("Yes")

-s = [list(eval(input())) for i in range(h)] -dx = [1, -1, 0, 0] -dy = [0, 0, 1, -1] +t = [list(eval(input())) for i in range(h)] + + +def check(x, y): +    dx = [0, 0, 1, -1] +    dy = [1, -1, 0, 0] +    jugde = False +    for k in range(4): +        i = x + dx[k] +        j = y + dy[k] +        if 0 <= i and i < h and 0 <= j and j < w and t[i][j] == "#": +            jugde = True +    if jugde == False: +        return False +    return True + + -        if s[i][j] == "#": -            judge = False -            for k in range(4): -                x = i + dx[k] -                y = j + dy[k] -                if 0 <= x and x < h and 0 <= y and y < w and s[x][y] == "#": -                    judge = True -            if judge == False: +        if t[i][j] == "#": +            if check(i, j): +                jugde = True +            else: