let () = Scanf.scanf "%d %d\n" @@ fun h w ->
  let ass = Array.init h @@ fun _ ->
    Scanf.scanf "%s\n" @@ fun as_ -> as_ in
  print_endline (String.make (w + 2) '#');
  Array.iter (Printf.printf "#%s#\n") ass;
  print_endline (String.make (w + 2) '#')