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



s=[]

t=[]

for hh in range(h):

    s.append(list(eval(input())))

    t.append([1]*w)



for hh in range(h):

    for ww in range(w):

        if s[hh][ww]==".":

            t[hh][ww]=0

        else:

            if hh==0:

                if s[hh+1][ww]=="#":

                    t[hh][ww]=0

            elif hh==h-1:

                if s[hh-1][ww]=="#":

                    t[hh][ww]=0

            else:

                if s[hh+1][ww]=="#":

                    t[hh][ww]=0

                if s[hh-1][ww]=="#":

                    t[hh][ww]=0

            if ww==0:

                if s[hh][ww+1]=="#":

                    t[hh][ww]=0

            elif ww==w-1:

                if s[hh][ww-1]=="#":

                    t[hh][ww]=0

            else:

                if s[hh][ww+1]=="#":

                    t[hh][ww]=0

                if s[hh][ww-1]=="#":

                    t[hh][ww]=0

tmax=0

for hh in range(h):

    if max(t[hh])>0:

        tmax=1



if tmax==0:

    print("Yes")

else:

    print("No")

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

s=[[0]*(w+2) for i in range(h+2)]

for i in range(h):

    s[i+1]=[0]+list(eval(input()))+[0]

    

yn=""

for i in range(1,h+2):

    for j in range(1,w+2):

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

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

                continue

            elif s[i+1][j]=="#":

                continue

            elif s[i][j-1]=="#":

                continue

            elif s[i][j+1]=="#":

                continue

            else:

                yn="No"

                break

    if yn=="No":

         break

     

if yn=="No":

    print("No")

else:

    print("Yes")        

h, w = list(map(int, input().split()))
s = []
t = []
for hh in range(h):
    s.append(list(eval(input())))
    t.append([1] * w)
for hh in range(h):
    for ww in range(w):
        if s[hh][ww] == ".":
            t[hh][ww] = 0
        else:
            if hh == 0:
                if s[hh + 1][ww] == "#":
                    t[hh][ww] = 0
            elif hh == h - 1:
                if s[hh - 1][ww] == "#":
                    t[hh][ww] = 0
            else:
                if s[hh + 1][ww] == "#":
                    t[hh][ww] = 0
                if s[hh - 1][ww] == "#":
                    t[hh][ww] = 0
            if ww == 0:
                if s[hh][ww + 1] == "#":
                    t[hh][ww] = 0
            elif ww == w - 1:
                if s[hh][ww - 1] == "#":
                    t[hh][ww] = 0
            else:
                if s[hh][ww + 1] == "#":
                    t[hh][ww] = 0
                if s[hh][ww - 1] == "#":
                    t[hh][ww] = 0
tmax = 0
for hh in range(h):
    if max(t[hh]) > 0:
        tmax = 1
if tmax == 0:
    print("Yes")
else:
    print("No")

h, w = list(map(int, input().split()))
s = [[0] * (w + 2) for i in range(h + 2)]
for i in range(h):
    s[i + 1] = [0] + list(eval(input())) + [0]
yn = ""
for i in range(1, h + 2):
    for j in range(1, w + 2):
        if s[i][j] == "#":
            if s[i - 1][j] == "#":
                continue
            elif s[i + 1][j] == "#":
                continue
            elif s[i][j - 1] == "#":
                continue
            elif s[i][j + 1] == "#":
                continue
            else:
                yn = "No"
                break
    if yn == "No":
        break
if yn == "No":
    print("No")
else:
    print("Yes")

-s = [] -t = [] -for hh in range(h): -    s.append(list(eval(input()))) -    t.append([1] * w) -for hh in range(h): -    for ww in range(w): -        if s[hh][ww] == ".": -            t[hh][ww] = 0 -        else: -            if hh == 0: -                if s[hh + 1][ww] == "#": -                    t[hh][ww] = 0 -            elif hh == h - 1: -                if s[hh - 1][ww] == "#": -                    t[hh][ww] = 0 +s = [[0] * (w + 2) for i in range(h + 2)] +for i in range(h): +    s[i + 1] = [0] + list(eval(input())) + [0] +yn = "" +for i in range(1, h + 2): +    for j in range(1, w + 2): +        if s[i][j] == "#": +            if s[i - 1][j] == "#": +                continue +            elif s[i + 1][j] == "#": +                continue +            elif s[i][j - 1] == "#": +                continue +            elif s[i][j + 1] == "#": +                continue -                if s[hh + 1][ww] == "#": -                    t[hh][ww] = 0 -                if s[hh - 1][ww] == "#": -                    t[hh][ww] = 0 -            if ww == 0: -                if s[hh][ww + 1] == "#": -                    t[hh][ww] = 0 -            elif ww == w - 1: -                if s[hh][ww - 1] == "#": -                    t[hh][ww] = 0 -            else: -                if s[hh][ww + 1] == "#": -                    t[hh][ww] = 0 -                if s[hh][ww - 1] == "#": -                    t[hh][ww] = 0 -tmax = 0 -for hh in range(h): -    if max(t[hh]) > 0: -        tmax = 1 -if tmax == 0: +                yn = "No" +                break +    if yn == "No": +        break +if yn == "No": +    print("No") +else: -else: -    print("No")