import Control.Monad
import Data.List


main :: IO ()
main = do
    [h, w] <- map read . words <$> getLine :: IO [Int]
    lines <- replicateM h getLine
    putStrLn $ replicate (w + 2) '#'
    forM_ lines $ \s -> do
        putStrLn ("#" ++ s ++ "#")
    putStrLn $ replicate (w + 2) '#'
