h,w = map(int,input().split())
s =[[i for i in input()] for j in range(h)]
for i in range(h):
	for j in range(w):
		if s[i][j]=='#':
			flag = 0
			for di in range(-1,2):
				for dj in range(-1,2):
					if di!=0 and (dj==-1 or dj==1):
						# print(1)
						continue
					if di==0 and dj ==0:
						continue
					if not (0<=i+di<h and 0<=j+dj<w):
						# print(2)
						continue
					if s[i+di][j+dj]=='#':
						flag = 1
			if flag ==0:
				print('No')
				break
		else:
			continue
		break
	else:
		continue
	break

else:
	print('Yes')
					

 