process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = [];
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
reader.on('line', (line) => {
  lines.push(line);
});
reader.on('close', () => {
    const [H, W] = lines[0].split(" ").map(v=>v-0);
    let ans = new Array(W+2).fill("#").join("")+"\n";
    ans += new Array(H).fill(0).map((v,i)=>{return "#"+lines[i+1]+"#"}).join("\n") + "\n";
    ans += new Array(W+2).fill("#").join("");
    console.log(ans);
    
});
