import Foundation
func toTuple<T>(_ args: [T]) -> (T, T) { (args[0], args[1]) }
func readInts() -> [Int] { readLine()!.split(separator: " ").map { Int($0)! } }

let (h, w) = toTuple(readInts())
var ai: [String] = []
for _ in 0..<h {
  ai.append(readLine()!)
}
var line = ""
for _ in 0..<w+2 {
  line += "#"
}
print(line)
for a in ai {
  print("#\(a)#")
}
print(line)