import Control.Monad
ok (x,y) (h,w) s =
    (s !! y !! x == '.') || or [s !!(y+j)!!(x+i) == '#'|j <-[-1,0,1],i <- [-1,0,1] , abs(i-j) == 1,y+j < h,0<=y+j , x+i < w ,0<=x+i]

main = do
    [h,w] <- (map read . words) <$> getLine
    s <- replicateM h getLine
    if and [ok (i,j) (h,w) s | i <- [0..w-1],j <- [0..h-1]]
        then putStrLn "Yes"
        else putStrLn "No"
    return()