import Foundation

extension String {
    var argi: [Int] { return self.characters.split(" ").map { Int(String($0))! } }
}

let arr = readLine()!.argi

let h: Int = arr[0]
var w: Int = arr[1]

w += 2

var res: String = ""

for i in 0..<w {
    res += "#"
}
res += "\n"

for i in 0..<h {
    let input = readLine()
    res += "#" + input! + "#\n"
}

for i in 0..<w {
    res += "#"
}
res += "\n"

print(res)
