b = input().split(" ")
H = int(b[0])
W = int(b[1])
a = [0 for i in range(H)]
j = "YES"
for i in range(H):
    a[i] = input()
for i0 in range(H):
    for i1 in range(W):
        if i1 == 0:
            if i0 == 0:
                if a[0][1] == '.' and a[1][0] =='.' and a[i0][i1] == '#':
                    j = "NO"
            elif i0 == H-1:
                if a[H-2][0] == '.' and a[H-1][1] == '.' and a[i0][i1] == '#':
                    j ="NO"
            else:
                if a[i0-1][0] == '.' and a[i0+1][0] =='.' and a[i0][1] == '.' and a[i0][i1] == '#':
                    j = "NO"
        elif i1 == W-1:
            if i0 == 0:
                if a[0][W-2] == '.' and a[1][W-1] =='.' and a[i0][i1] == '#':
                    j = "NO"
            elif i0 == H-1:
                if a[H-2][W-1] == '.' and a[H-1][W-2] == '.' and a[i0][i1] == '#':
                    j ="NO"
            else:
                if a[i0-1][W-1] == '.' and a[i0+1][W-1] =='.' and a[i0][W-2] == '.' and a[i0][i1] == '#':
                    j = "NO"
        else:
            if i0 == 0:
                if a[0][i1-1] == '.' and a[1][i1] =='.' and a[0][i1+1] == '.' and a[i0][i1] == '#':
                    j = "NO"
            elif i0 == H-1:
                if a[H-1][i1-1] == '.' and a[H-1][i1+1] == '.' and a[H-2][i1] == '.' and a[i0][i1] == '#':
                    j ="NO"
            else:
                if a[i0-1][i1] == '.' and a[i0+1][i1] =='.' and a[i0][i1-1] == '.' and a[i0][i1+1] == '.' and a[i0][i1] == '#':
                    j = "NO"
print(j)