import sys

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

s = []

s.append('.' * (W + 2))

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

    a = eval(input())

    a = '.' + a + '.'

    s.append(a)

s.append('.' * (W + 2))

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

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

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

            OK = False

            if s[i - 1][j] == '#' or s[i + 1][j] == '#' or s[i][j - 1] == '#' or s[i][j + 1] == '#':

                OK = True

            if OK == False:

                print('No')

                sys.exit()

print('Yes')
import sys

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

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

S = []

S.append('.' * (W + 2))

for i in range(H):

    S.append('.' + s[i] + '.')

S.append('.' * (W + 2))

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

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

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

            if S[i + 1][j] == '#' or S[i - 1][j] == '#' or S[i][j + 1] == '#' or S[i][j - 1] == '#':

                continue

            else:

                print('No')

                sys.exit()

print('Yes')
import sys

H, W = list(map(int, input().split()))
s = []
s.append("." * (W + 2))
for i in range(1, H + 1):
    a = eval(input())
    a = "." + a + "."
    s.append(a)
s.append("." * (W + 2))
for i in range(1, H + 1):
    for j in range(1, W + 1):
        if s[i][j] == "#":
            OK = False
            if (
                s[i - 1][j] == "#"
                or s[i + 1][j] == "#"
                or s[i][j - 1] == "#"
                or s[i][j + 1] == "#"
            ):
                OK = True
            if OK == False:
                print("No")
                sys.exit()
print("Yes")

import sys

H, W = list(map(int, input().split()))
s = [eval(input()) for i in range(H)]
S = []
S.append("." * (W + 2))
for i in range(H):
    S.append("." + s[i] + ".")
S.append("." * (W + 2))
for i in range(1, H + 1):
    for j in range(1, W + 1):
        if S[i][j] == "#":
            if (
                S[i + 1][j] == "#"
                or S[i - 1][j] == "#"
                or S[i][j + 1] == "#"
                or S[i][j - 1] == "#"
            ):
                continue
            else:
                print("No")
                sys.exit()
print("Yes")

-s = [] -s.append("." * (W + 2)) -for i in range(1, H + 1): -    a = eval(input()) -    a = "." + a + "." -    s.append(a) -s.append("." * (W + 2)) +s = [eval(input()) for i in range(H)] +S = [] +S.append("." * (W + 2)) +for i in range(H): +    S.append("." + s[i] + ".") +S.append("." * (W + 2)) -        if s[i][j] == "#": -            OK = False +        if S[i][j] == "#": -                s[i - 1][j] == "#" -                or s[i + 1][j] == "#" -                or s[i][j - 1] == "#" -                or s[i][j + 1] == "#" +                S[i + 1][j] == "#" +                or S[i - 1][j] == "#" +                or S[i][j + 1] == "#" +                or S[i][j - 1] == "#" -                OK = True -            if OK == False: +                continue +            else: