let h, w = Scanf.scanf " %d %d" @@ fun a b -> a, b
let a_ss = Array.init h @@ fun _ -> Scanf.scanf " %s" @@ fun s -> s
let s = String.make (w + 2) '#'
let _ =
  print_endline s;
  for i = 0 to h - 1 do print_char '#'; print_string a_ss.(i); print_endline "#" done;
  print_endline s