function Main (input) {
  input = input.split("\n");
  input.pop();
  input[0] = input[0].split(" ").map(Number);
  var h = input[0];
  var w = input[1];
  input.shift();
  var sk = "##";
  for (var i of input[0].split("")) {
    sk += "#";
  }

  console.log(sk);
  for (var j of input) {
    console.log("#" + j + "#");
  }
  console.log(sk);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));