import std.stdio, std.conv, std.string, std.algorithm, std.range, std.math;

void main() {
  auto po = readln.split.to!(int[]);
  auto H = po[0], W = po[1];
  string[] lines;
  foreach (i; 0..H) {
    lines ~= readln.chomp;
  }
  foreach (i; 0..W+2) {
    write("#");
  }
  writeln;
  foreach (line; lines) {
    write("#");
    write(line);
    writeln("#");
  }
  foreach (i; 0..W+2) {
    write("#");
  }
  writeln;
}
