h, w = map(int, input().split())
data = [input() for i in range(h)]


def able_black(line, row):
    if data[line][row] == '.':
        return True
    else:
        for dx in range(-1, 2):
            for dy in range(-1, 2):
                if 0 <= line+dx <= h-1 and 0 <= row+dy <= w-1 and not ((dx == 0 and dy == 0) or (dx == 1 and dy == 1) or (dx == -1 and dy == -1)):
                    if data[line+dx][row+dy] == '#':
                        return True
        return False


for i in range(h):
    for j in range(w):
        if not able_black(i, j):
            print('No')
            exit()
print('Yes')