fun main(args: Array<String>) {
    val (h, w) = readLine()!!.split(" ").map(String::toInt)
    val grid = Array(h) { readLine()!! }

    for (y in 0 until h) {
        for (x in 0 until w) {
            val left = x - 1
            val right = x + 1
            val up = y - 1
            val down = y + 1

            if (grid[y][x] != '#') {
                continue
            }

            if (0 <= left && grid[y][left] == '#') {
                continue
            }
            if (right < w && grid[y][right] == '#') {
                continue
            }

            if (0 <= up && grid[up][x] == '#') {
                continue
            }

            if (down < h && grid[down][x] == '#') {
                continue
            }

            println("No")
            return
        }
    }
    println("Yes")

}