import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val h  = sc.nextInt
  val w  = sc.nextInt
  val hl = List.fill(h)(sc.next)

  val sl = List.fill(w + 2)("#").mkString

  (-1 to h).foreach{k =>
    if(k == -1 || k == h) println(sl)
    else println(s"#${hl(k)}#")
  }



}
