// abc062-b
object Main extends App {
  val Array(h,w) = io.StdIn.readLine.split(" ").map(_.toInt)
  val as = for (_ <- 1 to h) yield io.StdIn.readLine

  println("#" * (w+2))
  for (a <- as) println(("#"+:a:+"#").mkString)
  println("#" * (w+2))
}