let id x = x
let (h,w) = Scanf.scanf "%d %d\n" (fun h w -> (h,w))

let array = Array.init h (fun _ -> "#" ^ (Scanf.scanf "%s\n" id) ^ "#") 
let list = Array.to_list array

let str = String.make (w+2) '#'
          
let () =
  print_endline str;
  List.iter print_endline list;
  print_endline str