fun main(args : Array<String>) {
        val list = (1..readLine()!!.split(" ")[0].toInt()).map { readLine()!! }
        (0 until list.size).forEach { i ->
            (0 until list[0].length).forEach { j ->
                if (list[i][j] == '#'
                        && (i == 0 || list[i - 1][j] == '.')
                        && (i == list.size - 1 || list[i + 1][j] == '.')
                        && (j == 0 || list[i][j - 1] == '.')
                        && (j == list[0].length - 1 || list[i][j + 1] == '.')) {
                    print("No")
                    return
                }
            }
        }
        print("Yes")
}