Problem:
 Score : 200 points    Problem Statement You are given a image with a height of H pixels and a width of W pixels.
Each pixel is represented by a lowercase English letter.
The pixel at the i -th row from the top and j -th column from the left is a_{ij} .  Put a box around this image and output the result. The box should consist of # and have a thickness of 1 .      Constraints  1 ≤ H, W ≤ 100  a_{ij} is a lowercase English letter.         Input Input is given from Standard Input in the following format:  H  W  a_{11}  ...  a_{1W}  :  a_{H1}  ...  a_{HW}       Output Print the image surrounded by a box that consists of # and has a thickness of 1 .        Sample Input 1 2 3
abc
arc      Sample Output 1 #####
#abc#
#arc#
#####       Sample Input 2 1 1
z      Sample Output 2 ###
#z#
###

Solution (Python):
h,w = map(int,input().split())
x = []
for _ in range(h):
    x.append(input())
print('
for i in range(h):
    print('
    print(x[i], end='')
    print('
print('

Solution (Python):
h, w = map(int, input().split())
a = []
for i in range(h):
    a.append(list(input().split()))

print("
for i in range(h):
    print("
print("

Solution (Python):
h,w=map(int,input().split())
print("
for _ in range(h):
  print("
print("

Solution (Python):
h,w=map(int,input().split())
print("
for i in range(h):
  s=input()
  s="
  print(s)
print("

Solution (Python):
H, W = list(map(int, input().split()))

print('
for i in range(H):
    s = input()
    print("
print('

Solution (Python):
h,w=map(int,input().split())
print("
for i in range(h):
    a=input()
    print("
print("

Solution (Python):
a,b = map(int,input().split())
s = "
print(s)
for i in range(a):
  t = input()
  t = "
  print(t)
print(s)

Solution (Python):
h,w=map(int,input().split())
print("
for i in range(h):
    print("
print("

Solution (Python):
h,w=map(int,input().split())
print('
for i in range(h):
  print('
print('

Solution (Python):

h,w = map(int,input().split())
print("
for i in range(h):
    print("
    print(input(),end="")
    print("
print("

Solution (Python):
"""
author : halo2halo
date : 30, Jan, 2020
"""

import sys




read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

H, W = map(int, readline().split())
a = read().decode('utf8').split()
print('
for i in range(H):
    print('
print('

Solution (Python):
H, W = map(int, input().split())
graph = [input() for _ in range(H)]
print("
for i in graph:
    print("
print("

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

H, W = MAP()

a = ["
print(*["".join(x) for x in a], sep="\n")

Solution (Python):
H, W = map(int, input().split())
P = [input() for _ in range(H)]

print('

for i in range(H):
    print('

print('

Solution (Python):
h, w = map(int, input().split())
a = [input().split() for _ in range(h)]

def puts(n:int, s:str) -> None:
    for _ in range(n):
        print(s, end='')

        
puts(w+2, "
print("\n", end='')

for i in range(h):
    print("
    print(''.join(a[i]), end='')
    print("
puts(w+2, "

Solution (Python):
h, w = map(int, input().split())
s = ""
for i in range(w + 2):
    s += "
print(s)
for i in range(h):
    print("
    t = input()
    print(t, end="")
    print("
print(s)

Solution (Python):
H, W = map(int, input().split())
A = ["
print(*A, sep="\n")

Solution (Python):
h,w = map(int,input().split())
a = [["
print("".join(["
for i in a: print("".join(i))
print("".join(["

Solution (Python):
h,w = map(int,input().split())
a = [input() for i in range(h)]
print('
for i in a:
    print('
print('

Solution (Python):
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
 
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

def main():
    H, W = MAP()
    A = [input() for i in range(H)]
    ans = ["
    print(*ans, sep="\n")


if __name__ == "__main__":
    main()

Solution (Python):
N,M = map(int,input().split())
r = '
for i in range(M):
    r += '
print(r)
for i in range(N):
    s = input()
    t = '
    print(t)
print(r)

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    h,w=INTM()
    ans=['
    
    for i in range(h):
        temp=STR()
        temp='
        
        ans.append(temp)
    ans.append(['
    for i in range(h+2):
        print(*ans[i],sep='')
if __name__ == '__main__':
    do()

Solution (Python):
h,w = map(int,input().split())
l = [input() for _ in range(h)]

print('
for i in l:
    print('
print('

Solution (Python):
h,w = map(int,input().split())
a = []
for i in range(h):
  a.append(input())
ans = ""

for i in range(w + 2):
  ans += "
  
ans += "\n"

for i in a:
  ans += "
  ans += i
  ans += "
  ans += "\n"

for i in range(w + 2):
  ans += "

print(ans)

Solution (Python):
H, W = map(int, input().split())

a_list = [input() for _ in range(H)]

print((W+2)*'
for a in a_list:
    print('

print((W+2)*'

Solution (Python):
h,w = map(int,input().split())
print('
for _ in range(h):
  a = input()
  print('
print('

Solution (Python):







H,W = map(int,input().split())
word = []
for i in range(H):
    word.append('

print('
for i in range(H):
    print(word[i])

print('

Solution (Python):
H,W = [int(i) for i in input().split()]
nes = [0] * H
for i in range(H) :
    li = list(input())
    nes[i] = li
lia = ["
nes.append(lia)
nes.insert(0,lia)
for i in range(1,H+1) :
    nes[i].append("
    nes[i].insert(0,"
for i in range(H+2) :
    k = ''.join(nes[i])
    print(k)

Solution (Python):
h,w=map(int,input().split())
print("
for _ in range(h):
  print("
print("

Solution (Python):
h, w = map(int, input().split())
awh = [input() for _ in range(h)]

ans = ""

ans += ("

for i in awh:
	ans += "

ans += ("

print(ans)

Solution (Python):
h,w=map(int,input().split())
frame=[]
frame.append("
for i in range(h):
    frame.append("
frame.append("

for i in range(len(frame)):
    print(frame[i])

Solution (Python):
H, W = map(int, input().split())
a = list(input() for _ in range(H))

ans = []
for i in range(H + 2):
  if i == 0 or i == H + 1:
    ans.append("
  else:
    ans.append("

for j in ans:
  print(j)

Solution (Python):
H, W = map(int, input().split())
a = []
block = '
for _ in range(H):
    a.append(input())
for i in range(H):
    a[i] = '
a.insert(0, block)
a.insert(H+1, block)

for i in range(H+2):
    print(a[i])

Solution (Python):
h, w = map(int,input().split())

sList = []
for i in range(h):
  sList.append(input())

for i in range(w-1+2):
  print("
print("

for i in range(h):
  print("
  print(sList[i],end="")
  print("

for i in range(w-1+2):
  print("
print("

Solution (Python):
h, w = map(int, input().split())

l = []

for i in range(h):
  l.append(input())

  

el = ''

for i in range(w+2):
  el += '
  
  

for i in range(h):
  l[i] = ("

  

l.insert(0, el)
l.append(el)



for i in range(len(l)):
  print(l[i])

Solution (Python):
n,m = map(int,input().split())
L = []
L.append("
for i in range(n):
    L.append("
L.append("
for i in range(len(L)):
    print(L[i])

Solution (Python):
x,y = map(int,input().split())

a = list()
a.append("
for i in range(x):
    a.append(input())

for i in range(1,x+1):
    a[i] = "

a.append("


for i in range(x+2):
    print(a[i])

Solution (Python):
x, y = map(int, input().split())

print('
for i in range(x):
    print('
print('

Solution (Python):
H, W = map(int, input().split())
areas = ['

tmp = ['
ans = tmp + areas + tmp
for a in ans:
    print(a)

Solution (Python):
h,w = map(int,input().split())
aa = [input() for _ in range(h)]

print('
for i in range(h):
  print('
print('

Solution (Python):
import sys
input = sys.stdin.readline
h,w=map(int,input().split())
a=[list(map(str,input().split())) for _ in range(h)]
ans=[["
for i in range(h):
    b=["
    b+=a[i]
    b+=["
    ans.append(b)
ans.append(["
for i in ans:
    print("".join(i))

Solution (Python):
H,W = map(int, input().split())

H_output = H+2
W_output = W+2

S = []
for _ in range(H):
    s = list(input())
    S.append(s)
count = 0

for i in range(H_output):
    if i==0 or i==H+1:
        row = ["
        print(*row,sep="")
        continue
    else:
        row_left = ["
        row_right = ["
        row = row_left + S[count] + row_right
        print(*row,sep="")
        count = count + 1

Solution (Python):
h, w = map(int, input().split())

x = "
print(x)
for _ in range(h):
    print("
print(x)

Solution (Python):


import numpy as np
import fractions as fra


h,w=map(int,input().split())
p="
print(p)
for i in range(h):
    print("
print(p)

Solution (Python):
a,b=map(int,input().split())
pic=[]

for i in range(a):
  pic.append(input())

for i in range(b+2):
  print("
print()
for i in range(a):
  print("
  print(pic[i],end="")
  print("
  
for i in range(b+2):
  print("

Solution (Python):
import sys
input = sys.stdin.readline
H, W = [int(x) for x in input().split()]
a = []
for _ in range(H):
    a.append(input().rstrip())
ans = []
ans.append("
for i in a:
    i = "
    ans.append(i)
ans.append("
for j in ans:
    print(j)

Solution (Python):
h, w = map(int, input().split())

img = []
for i in range(h):
   img.append(input())

for i in range(w+2):
   print('
print()

for i in range(h):
   print('
   print(img[i], end='')
   print('

for i in range(w+2):
   print('
print()

Solution (Python):
h, w = map(int, input().split())

ah , aw = h + 2, w + 2

answer = ["
for _ in range(h):
    answer += ["
answer += ["

for i in answer:
    print(i)

Solution (Python):
H, W = map(int, input().split())
print("
for _ in range(H): print("
print("

Solution (Python):
h, w = map(int, input().split())
a = [list(input()) for _ in range(h)]
for i in range(h+2):
    ans = ""
    for j in range(w+2):
        if i == 0 or i == h+1 or j == 0 or j == w+1:
            ans += "
        else:
            ans += a[i-1][j-1]
    print(ans)

Solution (Python):
h,w=map(int,input().split())
hw=["
for i in range(h):
    hw.append("
hw.append("
for i in range(h+2):
    print(hw[i])

Solution (Python):


h, w = map(int, input().split())
a = []

for i in range(h):
    a.append(input())


print("
for i in range(h):
    print("
    print(a[i], end="")
    print("
print("

Solution (Python):
H, W = map(int, input().split())
mylist=[]
for i in range(H):
    var = input()
    mylist.append(var)
print("
for i in range(H):
    print ("
print("

Solution (Python):
h, w = map(int, input().split())
a = []
for i in range(h):
    a.append(str(input()))
b = '
lst = [b]

for i in range(h):
    c = ['
    lst.append(''.join(c))

lst.append(b)

for i in range(h+2):
    print(lst[i])

Solution (Python):
H, W = map(int, input().split())

a = []
for i in range(H):
    a.append(input())

print("
for i in range(H):
    print("
print("

Solution (Python):
h,w=map(int,input().split())
a=[]
s="
for i in range(h):
  a.append([i for i in input()])
  a[i].insert(0,"
  a[i].append("
print(s)
for i in a:
  print("".join(i))
print(s)

Solution (Python):
H,W=map(int,input().split())
L=[]
for i in range(H):
    L.append(input())

print("
for i in range(H):
    print("
print("

Solution (Python):
H, W = map(int, input().split())
a = [input() for i in range(H)]
line = '
print(line)
for t in range(H):
    print('
print(line)

Solution (Python):
h,w = map(int,input().split())
pic = [str(input()) for _ in range(h)]


for i in range(-1,h+1):
    if i == -1 or i == h:
        print(*['
    else:
        print('

Solution (Python):
h,w=map(int,input().split())
a=['
b=[''.join(a)]
for i in range(h):
    x=input()
    x='
    b.append(x)
b.append(''.join(a))
for i in range(h+2):
    print(b[i])

Solution (Python):
H, W = map(int, input().split())

print('
for _ in range(H):
    print('
print('

Solution (Python):

 
import math
import itertools
import sys
import copy
 

H, W = map(int, input().split())



Q = []
for _ in range(H) :
  Q.append(str(input()))


s = "
for _ in range(W) :
  s += "

print (s)
for i in range(H) :
  print ("
print (s)

Solution (Python):
h , w = map(int,input().split())
lis = []
for i in range(h):
    lis.append(input())
print('
for i in range(h):
    print('
print('

Solution (Python):
H,W = map(int,input().split())
print("
for i in range(H):
  print("
print("

Solution (Python):

n,m=map(int,input().split())
s=[input() for i in range(n)]

print("
for i in range(n):
  print("
print("

Solution (Python):
n,m=map(int,input().split())
s=[input() for i in range(n)]

print("
for i in range(n):
  print("
print("

Solution (Python):
H,W = map(int, input().split())
A = []
for i in range(H):
	A.append('

print('
for a in A:
	print(a)
print('

Solution (Python):
H,W=map(int,input().split())
answer=['
for i in range(H):
  s=str(input())
  answer +=['
answer+=['
for i in range(H+2):
  print(answer[i])

Solution (Python):
H , W = map(int,input().split())
a = list(input() for _ in range(H))
print("
for h in a:
    print("
    print(h,end = "")
    print("
print("

Solution (Python):
h,w = map(int,input().split())

print("
for _ in range(h):
   s = input()
   print("
   
print("

Solution (Python):
H, W = list(map(int, input().split()))
print('
for h in range(H):
  print('
print('

Solution (Python):
h, w = map(int, input().split())
print('
print(*['
print('

Solution (Python):
import sys
h,w = map(int, sys.stdin.readline().split())

a = [input() for _ in range(h)]

for i in range(h+2):
    if i == 0 or i == h+1:
        print("
    else:
        print("

Solution (Python):

import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf')
ans = 0 ;count = 0 ;pro = 1

h,w=map(int,input().split())
data=[list(input()) for i in range(h)]
ans=[["
for i in range(1,h+1):
    ans[i][1:w+1]=data[i-1]
for ai in ans:
    print(*ai,sep="")

Solution (Python):
import sys

h, w = map(int, sys.stdin.readline().split())
canvas = ['

def main():
    return canvas

if __name__ == '__main__':
    ans = main()
    print(*ans, sep='\n')

Solution (Python):
H, W = map(int, input().split())
print("
for i in range(H):
    print("
print("

Solution (Python):
h, w = map(int, input().split())
s = [input() for _ in range(h)]
print("
for i in range(h):
    print("
print("

Solution (Python):
y,x=map(int,input().split())
info=[]
for i in range(y):
    a=list(input())
    a.insert(0,"
    a.append("
    info.append(a)
b=["
info.insert(0,b)
info.append(b)
for i in range(y+2):
    print("".join(info[i]))

Solution (Python):
h,w=map(int,input().split())
print('{h1}'.format(h1='
for i in range(h):
  print('{h1}{h2}{h1}'.format(h1='
print('{h1}'.format(h1='

Solution (Python):
h,w=map(int,input().split())
a=[input() for _ in range(h)]
e="
print(e)
for i in range(h):
    print("
print(e)

Solution (Python):
H, W = map(int, input().split())

print("
for _ in range(H):
    s = input()
    print("
print("

Solution (Python):
H, W = map(int, input().split())
a = [input() for i in range(H)]
print('
for i in range(H):
    print('
print('

Solution (Python):
h, w = map(int, input().split())
a = [input() for _ in range(h)]

print('
for i in range(h):
    print('
print('

Solution (Python):
h, w = map(int, input().split())
S=["
S=["
print(*S, sep="\n")

Solution (Python):

H,W = map(int, input().split())

for i in range(W+2):
    print("
    
print("")

for i in range(H):
    s = str(input())
    s = ["
    print(''.join(map(str,s)))
for i in range(W+2):
    print("

Solution (Python):
h,w=map(int,input().split())
a = [[i for i in input().split()] for i in range(h)] 
s="
print(s)
for i in range(h):
    moji=''.join(a[i])
    print("
print(s)

Solution (Python):
h,w = map(int,input().split())
A = [input() for _ in range(h)]
for i in range(h):
  
  A[i] =  "
  
for i in range(h + 2):
  if i == 0:
    print("
  elif i == h + 1:
    print("
  else:
    print(A[i - 1])

Solution (Python):
h, w = map(int, input().split())
ls_a = [input() for _ in range(h)]

for i in range(h):
    ls_a[i] = "

top = "
bottom = "


print(top)
for j in range(h):
    print(ls_a[j])
print(bottom)

Solution (Python):
h,w=map(int, input().split())
print("
for i in range(h):
    print("
print("

Solution (Python):
h, w = map(int, input().split())
a = [input() for i in range(h)]
print ("
for i in range(h):
	print ("
print ("

Solution (Python):
H,W = map(int,input().split())
lists=[input() for _ in range(H)]
print("
for s in lists:
    print("
print("

Solution (Python):
HW = list(map(int,input().split()))
H=HW[0]
W=HW[1]
a = [input() for i in range(H)]
a.insert(0,'
a.append('

for i in range(1,H+1):
    a[i]=list(a[i])
    a[i].insert(0,'
    a[i].append('
    a[i]=''.join(a[i])

a='\n'.join(a)

print(a)

Solution (Python):
H, W = map(int, input().split())
print("
for i in range(H):
        print("
print("

Solution (Python):
h,w = map(int, input().split())
lst = ['
for _ in range(h):
    lst.append('
lst.append('
print(*lst, sep='\n')

Solution (Python):
h,w=[int(i) for i in input().split()]
for i in range(h+2):
    if(i==0 or i==(h+1)):
        print('
    else:
        print('

Solution (Python):
H, W = map(int, input().split())
a = []
for _ in range(H):
    a.append(input())
print('
for i in range(H):
    print('
print('

Solution (Python):

import sys
if sys.platform =='ios':
    sys.stdin=open('input_file.txt')

h,w = map(int,input().split())
s = [str('

test = ''
for i in range(w+2):
	test = test + '


s.insert( 0,test)


s.insert(len(s),test)

for i in range(h+2):
	print(''.join(s[i]))

Solution (Python):
h,w = map(int,input().split())
a = []
for i in range(h):
  x = input()
  a.append(x)
s=""
for i in range(w+2):
  s += "
print(s)
for i in range(h):
  print("
print(s)

Solution (Python):
h,w=map(int,input().split())
a=["
print(*a,sep="")
for i in range(h):
	b=input()
	b="
	print(b)
print(*a,sep="")

Solution (Python):
H, W = map(int, input().split())
a = [input() for _ in range(H)]

print("

for h in range(H):
    print("

print("

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    h,w=MI()
    ss=[input() for _ in range(h)]
    print("
    for s in ss:
        print("
    print("
main()

Solution (Python):
h,w = map(int,input().split())
ud = [["
A = ud+[["
[print("".join(a)) for a in A]

Solution (Python):
h,w =map(int,input().split())
c = list(input() for _ in range(h))

print("
for i in range(len(c)):
    a = list(c[i])
    a.insert(0,"
    a.append("
    b = "".join(a)
    print(b)
    
print("

Solution (Python):
H,W = map(int,input().split())
A = [[i for i in input()] for _ in range(H)]
A.insert(0,["
A.insert(H+2,["
for j in range(len(A)):
  A[j].insert(0,"
  A[j].append("
for ans in A:
  print("".join(ans))

Solution (Python):
H,W = map(int,input().split())
sharp = '
S = []
for i in range(H):
  S.append(input())
for i in range(H+2):
  if i == 0 or i == H+1:
    print(sharp)
  else:
    print('

Solution (Python):


H,W=list(map(int,input().split(" ")))

print("


for _ in range(H):
    print("

print("

Solution (Python):
from sys import stdin
from itertools import accumulate

h,w = [int(x) for x in stdin.readline().rstrip().split()]
li = [["" for i in range(w)]for j in range(h)]

for i in range(h):
    s = stdin.readline().rstrip()
    for j in range(w):
        li[i][j] = s[j]

lin = [["

for i in range(h):
    for j in range(w):
        lin[i+1][j+1] = li[i][j]

for i in lin:
    print("".join(i))

Solution (Python):
h,w=map(int,input().split())
print("
for i in range(h):
  print("
print("

Solution (Python):
H,W=map(int,input().split())
Q=[]
for i in range(H):
    Q.append(input())

print('
for i in range(H):
    print('
print('

Solution (Python):
h, w = map(int, input().split())

A = [[str(input())] for _ in range(h)]

for i in range(h):
    A[i].insert(0, '
    A[i].append('

A.insert(0, ['
A.append(['

for j in range(h+2):
    print(''.join(A[j]))

Solution (Python):
h, w = map(int, input().split())
print("".rjust(w+2, "
for i in range(h):
    print("
print("".rjust(w+2, "

Solution (Python):
h,w = map(int,input().split())
a = [input() for i in range(h)]

print("

for j in range(h):
    print("
print("

Solution (Python):
H,W = (int(i) for i in input().split())
Y = []
for i in range(W+2):
    Y.append('
    
Z = [Y]
for i in range(H):
    tmp = str(input())
    X = ['
    X.append(tmp)
    X.append('
    Z.append(X)

Z.append(Y)
for i in range(H + 2):
    print(''.join(Z[i]))

Solution (Python):
h,w = map(int,input().split())
print('
for _ in range(h):
    print('
print('

Solution (Python):
H, W = map(int, input().split())
l = [input() for _ in range(H)]
print('

for i in l:
    print('

print('

Solution (Python):
h, w = map(int, input().split())
a = [input() for _ in range(h)]



print("

for i in range(h):
    print("

print("

Solution (Python):
H,W = map(int,input().split())
ans = ["
for i in range(H):
    S = input()
    S = "
    ans.append(S)
ans.append("
for i in ans:
    print(i)

Solution (Python):
h, w = map(int, input().split())

area = []

for i in range(h):
    a = input()
    area.append(a)

for i in range(h+2):
    if i == 0:
        print('
    elif i == h+1:
        print('
    else:
        print('

Solution (Python):
h,w = map(int,input().split())
A = [list(input()) for i in range(h)]
B = [['']*(w+2)]*(h+2)
for i in range(h+2):
    for j in range(w+2):
        if i==0 or i==h+1:
            B[i][j]='
        elif j == 0 or j == w+1:
            B[i][j]='
        else:
            B[i][j]=A[i-1][j-1]
    print(*B[i],sep='')

Solution (Python):
h,w=map(int,input().split())
print("
for i in range(h):
    print("
print("

Solution (Python):
h,w=map(int,input().split())
s=[list(input()) for i in range(h)]
l=['

for i in range(h):
    s[i]=['
s=[l]+s+[l]

for i in range(h+2):
    s[i]=''.join(s[i])
    
print(*s,sep='\n')

Solution (Python):
from collections import deque
h,w=map(int,input().split())
print("
for i in range(h):
  d=input()
  print("
print("

Solution (Python):
H, W = map(int,input().split())
P = [input() for _ in range(H)]
S = ""
for i in range(W+2):
    S = S+"
for i in range(H+2):
    if i == 0 or i == H+1:
        print(S)
    else:
        print("

Solution (Python):
h, w = map(int, input().split())

answer = ""
for i in range(h + 2):
  if i == 0:
    answer += ''.join(["
  elif i == h +1:
    answer += ''.join(["
  else:
    answer += "

print(answer)

Solution (Python):
h,w = map(int ,input().split())
l=[list(input().split()) for x in range(h)]
for i in range(h):
    l[i].insert(0,"
    l[i].append("
print("
for i in range(h):
    for j in range(3):
        print(l[i][j],end="")
    print("")    
print("

Solution (Python):
H, W = map(int, input().split())
print("
for _ in range(H):
    print("
print("

Solution (Python):
h, w = map(int, input().split())
P = [ input() for _ in range(h) ]
print("
for i in P:
  print("
print("

Solution (Python):
H, W = map(int,input().split())
print('
for _ in range(H):
    buffer = '
    print(buffer)
print('

Solution (Python):
h,w = map(int,input().split())
a = [input() for i in range(h)]
print('
for i in range(h):
    print('
print('

Solution (Python):
h,w=map(int,input().split())
a=["
f=["
print("".join(f))
for i in a:
    print(i)
print("".join(f))

Solution (Python):
H, W = map(int, input().split())
print("
for i in range(H):
    print("
print("

Solution (Python):
H, W = map(int, input().split())
l = []
for i in range(H):
  l.append(str(input()))
ans = []
sharplist = '

ans.append(sharplist)
for i in range(H):
  ans.append('
ans.append(sharplist)
      
for i in range(H+2):
  print(ans[i])

Solution (Python):
h,w=map(int,input().split())
A=[]
for i in range(h):
    a=list(input())
    A.append(a)
ans=''
for j in range(h+2):
    for k in range(w+2):
        if j==0 or j==h+1:
            ans+='
        else:
            if k!=0 and k!=w+1:
                ans+=A[j-1][k-1]
            else:
                ans+='
    print(ans)
    ans=''

Solution (Python):
def examB():
    H, W = LI()
    a = ["
    ans = "
    for i in range(H):
        ans += a[i]
    ans += "
    for i in range(H+2):
        print(ans[i*(W+2):(i+1)*(W+2)])

import sys
import copy
import bisect
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examB()

Solution (Python):
h, w = map(int, input().split())
ls = []

ls.append(['
for _ in range(h):
    ls.append(['
ls.append(['

for s in ls:
    print(*s, sep='')

Solution (Python):
h, w = map(int, input().split())
a = []
for i in range(h):
    a.append("
print("
for i in range(h):
    print(a[i])
print("

Solution (Python):

h, w = [int(s) for s in input().split()]

a = []
for _ in range(h):
    a.append(input())

print('

for i in range(h):
    print('

print('

Solution (Python):
H,W=map(int,input().split())
A = [str(input()) for i in range(H)]
A_sharp=['
print('
for i in A_sharp:
    print(i)
print('

Solution (Python):
num = list(map(int, input().split(' ')))
tate = num[0]
yoko = num[1]
letters = [0 for i in range(tate)]

for i in range(tate):
    letters[i] = input()

ans = []
for letter in letters:
    ans.append("

print("
for ans_letter in ans:
    print(ans_letter)
print("

Solution (Python):
H,W = map(int,input().split())
h = ['
str_ = ''.join(h)
print(str_)
for i in range(H):
  print('
print(str_)

Solution (Python):
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

h,w = inpl()
s = [input() for i in range(h)]
res = [''] * (h+2)
for i in range(h+2):
    if i == 0 or i == h+1:
        res[i] = '
        continue
    res[i] = '
for i in res:
    print(i)

Solution (Python):
H,W= map(int,input().split())
S = ["
print(*S,sep="")
for i in range(H):
    print("
    print(input(),end="")
    print("
print(*S,sep="")

Solution (Python):
H,W = map(int,input().split())
List = []
for _ in range(H):
  S = input()
  List.append(S)
print('
for i in range(H):
  print('
  print(List[i].strip(),end='')
  print('
print('

Solution (Python):
h, w = map(int, input().split())
a = [[c for c in input()] for i in range(h)]
print('
for i in range(h):
    a[i].insert(0, '
    a[i].append('
    print(''.join(a[i]))
print('

Solution (Python):
h, w = map(int, input().split())
print("
for i in range(h):
  print("
print("

Solution (Python):
import sys
from functools import reduce
import copy
import math
from pprint import pprint
import collections
import bisect


sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def int_inputs(num_of_input):
    ins = [int(input()) for i in range(num_of_input)]
    return ins


def solve(H, W, inputs):
    S = inputs
    for _ in range(W+2):
        print('
    print('')

    for s in S:
        print('
        print(s, end='')
        print('

    for _ in range(W+2):
        print('
    print('')


def string_to_int(string):
    return list(map(int, string.split()))


if __name__ == "__main__":
    [H, W] = string_to_int(input())
    ret = solve(H, W, inputs(H))

Solution (Python):
import sys
lines = sys.stdin.readlines()

h, w = [int(x) for x in lines[0].split()]
lines[0] = '
for i in range(1, h+1):
    lines[i] = '
lines.append('

for i in range(h+2):
    print(lines[i])

Solution (Python):
H,W=map(int,input().split())
ans=[[] for i in range(H+2)]
ans[0]=["
ans[H+1]=["
for i in range(1,H+1):
  ans[i]="
for i in range(H+2):
  print("".join(ans[i]))

Solution (Python):
h, w = map(int, input().split())
S = ['
S.insert(0, '
S.append('

for i in range(len(S)):
    print(S[i])

Solution (Python):
H,W = map(int,input().split())
Data = []
for _ in range(H):
    Data.append(input())
print('
for i in range(H):
    print('
print('

Solution (Python):
h, w = map(int, input().split())
l = []
for i in range(h):
    s = input()
    l.append(s)

print('
for j in range(len(l)):
    print('
print('

Solution (Python):
h,w = map(int, input().split())
print('
for _ in range(h):
  print('
  
print('

Solution (Python):








h,w = map(int,input().split())

for i in range(w+2):
    print("
print()
for i in range(h):
    print("
    print(input(),end ="")
    print("
for i in range(w+2):
    print("
print()

Solution (Python):
H, W = map(int, input().split())
print("
for _ in range(H):
    r = input()
    print("
print("

Solution (Python):
H,W = map(int,input().split())
mat = [["
print("".join(["
for i in range(len(mat)):
    print("".join(mat[i]))
print("".join(["

Solution (Python):
H,W=map(int,input().split())
tmp = '
print(tmp)
for i in range(H):
    grid = '
    print(grid)
print(tmp)

Solution (Python):
h, w = map(int, input().split())
print("
for _ in range(h):
    print("
print("

Solution (Python):
h, w = map(int, input().split())
a = [input().split() for _ in range(h)]
print('
for i in range(h):
    print('
print('

Solution (Python):
h, w = map(int, input().split())
S=[]
S.append("
for i in range(h):
  S.append("
S.append("

print(*S, sep="\n")

Solution (Python):
H,W = map(int, input().split())
aw = [input().split() for _ in range(H)]

print('
for i in range(H):
    print('
print('

Solution (Python):
def main(h, w, a):
    print('

    for s in a:
        print('

    print('


if __name__ == '__main__':
    h, w = map(int, input().split(' '))
    a = []

    for _ in range(h):
        a.append(input())

    main(h, w, a)

Solution (Python):
H, W = map(int, input().split())
A = [list(input().split()) for _ in range(H)]
for i in range(H+2):
    if i == 0 or i == H+1:
        print(''.join(['
    else:
        print(''.join(['

Solution (Python):
h,w = map(int,input().split())
l = []
for i in range(h):
    l.append(input())
print("
for i in l:
    print("
print("

Solution (Python):

H, W = map(int, input().split())
S = []
print("
for i in range(H):
    s = input()
    print("
print("

Solution (Python):
h,w=map(int,input().split())
print("
for i in range(h):print("
print("

Solution (Python):
H, W = map(int, input().split())

print("
for _ in range(H):
  print("
print("

Solution (Python):
H,W=map(int,input().split())
A=[]
for i in range(H):
    A.append('
A.append('
A.insert(0,'

for i in A:
    print(i)