H, W = list(map(int, input().split()))
S = [input() for _ in range(H)]
field = [[0 for w in range(W+2)] for h in range(H+2)]

def add(h, w):
    field[h][w + 1] += 1
    field[h + 2][w + 1] += 1
    field[h + 1][w] += 1
    field[h + 1][w + 2] += 1

for h in range(H):
    for w in range(W):
        if S[h][w] == "#":
            add(h, w)
        else:
            field[h+1][w+1] -= 10
        
res = 0
for l in field[1:W-1]:
    if 0 in l[1:H-1]:
        print("No") 
        break
else:
    print("Yes")