fun main(arr:Array<String>) {
    val (h,w) = readLine()!!.split(" ").map { it.toInt() }
    val pic = (1..h).map { readLine()!! }
    println((1..w + 2).joinToString("") { "#" })
    pic.forEach { println("#$it#") }
    println((1..w + 2).joinToString("") { "#" })
}