import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    //nextLineとnextを同時に使ったら死ぬ
    val sc = new Scanner(System.in)
    val h, w = sc.nextInt()
    val map = List.fill(h)(sc.next())
    (0 until w + 2).foreach(_ => print('#'))
    println()
    map.foreach(elm => {
      print('#')
      elm.foreach(print)
      println('#')
    })
    (0 until w + 2).foreach(_ => print('#'))
    println()
  }
}
