object Main extends App {
	val Array(h, w) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
	val dp = Array.ofDim[Char](h, w)

	for(i<-0 until h){
		dp(i) = scala.io.StdIn.readLine.toList.toArray
	}

	println(Array.fill(w+2)("#").mkString)
	for(i<-0 until h){
		println("#" + dp(i).mkString + "#")
	}
	println(Array.fill(w+2)("#").mkString)
}
