object Main {
	val s = new java.util.Scanner(System.in)
	def main(args: Array[String]) {
		val h, w = s.nextInt();

		outHR(w + 2);
		for (_ <- 1 to h)
			println("#" + s.next + "#")
		outHR(w + 2);
	}
	def outHR(n: Int) {
		var r = "";
		for (_ <- 1 to n)
			r += "#";
		println(r);
	}
}
