h,w=map(int,input().split())
from collections import defaultdict
data=defaultdict(int)
for y in range(h):
    line=input()
    for x in range(w):
        if line[x]=='.':data[(y,x)]=-1
        if line[x]=='#':
            for i in range(-1,2):
                for j in range(-1,2):
                    if data[(y+i,x+j)]!=-1:
                        data[(y+i,x+j)]+=1
ans=0            
for y in range(h):
    for x in range(w):
        if data[(y,x)]==0:ans+=1
if ans==0:print('Yes')
elif ans>0:print('No')