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())
A = [["
for _ in range(H):
    row = list(input().strip())
    row.insert(0,"
    row.append("
    A.append(row)
A.append(["
for i in range(H+2):
    print("".join(A[i]))

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

Solution (Python):

H,W = map(int,input().split())
L = [[] for _ in range(H+2)]

for i in range(H+2):
    if i == 0 or i == H+1:
        a = '
        L[i].append(a)
        continue

    S = input()
    for j in range(len(S)):
        if len(S) == 1:
            if j == 0:
                L[i].append('
                L[i].append(S[j:j+1])
                L[i].append('
        else:
            if j == 0:
                L[i].append('
                L[i].append(S[j:j+1])
                continue
            if j == len(S)-1:
                L[i].append(S[j:j+1])
                L[i].append('
                continue
            L[i].append(S[j:j+1])

for l in L:
    print(*l,sep='')

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

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

a = '

print(a)
for i in range(0,H):
  s = input()
  print('
print(a)

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

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())
x = [0]*h
for i in range(h):
  x[i] = input()

for i in range(w+1):
  print('
print('
for i in range(h):
  print('

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

Solution (Python):
h, w = map(int, input().split())
result_img = ["
for _ in range(h):
  base_pix = input()
  base_pix = "
  result_img.append(base_pix)
result_img.append("

for one_row in result_img:
  print(one_row)

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

Solution (Python):
from sys import exit, stdin
H, W = [int(_) for _ in stdin.readline().rstrip().split()]
print('
for i in range(H):
    A = stdin.readline().rstrip()
    print('
print('

Solution (Python):
H,W = map(int,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())

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

print('
for j in s_list:
  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(a[i],end='')
    print('

print('

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

print('
for i in range(h):
    a = input()
    print('
print('

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

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

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

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

line=[]

for w in range(W+2):
  line.append('

print(''.join(line))

for h in range(H):
  print('

print(''.join(line))

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

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

pics = [input() for i in range(h)]

for pic in pics:
    print("

print(*sharp,sep="")

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

list1=[[0 for i in range(w)] for i in range(h)]
list2=[[0 for i in range(w+2)] for i in range(h+2)]
for i in range(h):
    a=input()
    for j in range(w):
        list1[i][j]=a[j]

for i in range(h+2):
    for j in range(w+2):
        if i == 0 or i == h+1:
            list2[i][j] = '
        if j == 0 or j == w+1:
            list2[i][j] = '
        
        if list2[i][j] == 0:
            list2[i][j]=list1[i-1][j-1]
    
for i in list2:
    a=''.join(i)
    print(a)

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

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    h, w = list(map(int, input().rstrip('\n').split()))
    print("
    for i in range(h):
        print("
    print("


if __name__ == '__main__':
    slove()

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

res = "

for _ in range(h):
    res += ("

res += "

print(res)

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

print(*a, sep='\n')

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

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

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

Solution (Python):
h,w = list(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(len(a)):
    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(''.join(["

for i in range(h):
    a=input()
    print('

print(''.join(["

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

Solution (Python):
H,W = map(int,input().split())
s = []
n = ""
b = ""
a = []
for i in range(H):
  a.append(input())
for j in range(W+2):
  n += "
print(n)
for i in range(H):
  a[i] = "
  print(a[i])
for j in range(W+2):
  b += "
print(b)

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

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

temp1=["
print("".join(temp1))

for i in range(h):
  temp=list(input().split())
  temp.insert(0,"
  temp.append("
  print("".join(temp))

print("".join(temp1))

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 = ["
for _ in range(h):
    a += ["
a += ["
for i in a:
    print(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())
ans = []
ans.append('
for _ in range(H):
    a = '
    ans.append(a)
ans.append('
ans = '\n'.join(ans)
print(ans)

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

print("

Solution (Python):
n, m = map(int, input().split())

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

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

Solution (Python):
h, w = map(int, input().split())
ls = ['
l = '
print(l)
for row in ls:
    print(row)
print(l)

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

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

Solution (Python):
import sys


		
def main():
	h,w = map(int, input().split())
	print('
	for _ in range(h):
		s = '
		print(s)
	print('
	

isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		
			
	ret = main()
	if ret is not None:
		print(ret)

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())

width = w + 2
print('

for i in range(h):
    pix = input()
    print('

print('

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


if __name__ == "__main__":
    resolve()

Solution (Python):
h,w = map(int, input().split())
A = ['
A.insert(0,'
A.append('
for a in A:
    print(a)

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 = ["

print("
for x in a:
    print(x)
print("

Solution (Python):
H, W = tuple(map(int, input().split()))
A = []
for h in range(H):
    A.append([c for c in input()])
res = [["
for i in range(1, H+1):
    for j in range(1, W+1):
        res[i][j] = A[i-1][j-1]
res = ["".join(x) for x in res]
res = "\n".join(res)
print(res)

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

Solution (Python):
def main():
    h,w=map(int,input().split(' '))
    maze = [[i for i in list(input())] for i in range(h)]
    upside = ['
    downside=['
    for i in upside:
        print(i,end='')
    print('')
    for i in maze:
        print('
        for j in i:
            print(j,end='')
        print('
    for i in downside:
        print(i,end='')



if __name__ == '__main__':
    main()

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

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

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

print('
for v in picture:
    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())
print("
for i in range(h):
  print("
print("

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

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

tb = '

for i in range(h):
    n[i] = '
else:
    n.insert(0, tb)
    n.append(tb)

for g in range(h+2):
    print(n[g])

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

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

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):
    a = input()
    print("

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

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

print('

for _ in range(h):
    print('
    row = list(input())
    print(''.join(row), end='')
    print('

print('

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

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

Solution (Python):
H,W = (int(x) for x in input().split())
table = [[str(i) for i in input().split()] for m in range(H)]

a = '
for j in range(0,W+1):
    a += '
print(a)
for i in range(0,H):
    table[i].insert(0,'
    table[i].append('
    print("".join(table[i]))
print(a)

Solution (Python):
A, B = map(int, input().split())

m = "

l = []
for i in range(A):
  l.append(input())

ma = "

print(ma)

for i in l:
  print(m + i + m)

print(ma)

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    H, W = map(int, input().split())
    a = [input().strip() for i in range(H)]

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

if __name__ == "__main__":
    main()

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 = [input() for i in range(h)]

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

Solution (Python):



H, W = map(int, input().split())
a = [list(map(str, input().split())) for i in range(H)]


for i in range(H + 2):
    if i == 0 or i == H + 1:
        for _ in range(W + 2):
            if _ != W + 1:
                print('
            else:
                print('
    else:
        for j in range(3):
            if j == 0:
                print('
            elif j == 2:
                print('
            else:
                print(a[i - 1][0], sep='', end='')

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

Solution (Python):
H, W = map(int, input().split())
ans = ""
for i in range(W + 2):
  ans += "
ans += "\n"

for i in range(H):
  ans += "
  ans += ans.join(input().split())
  ans += "

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

print(ans)

Solution (Python):

import sys


def ILI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def ISI(): return map(int, sys.stdin.readline().rstrip().split())
def II(): return int(sys.stdin.readline().rstrip())
def ISS(): return sys.stdin.readline().rstrip().split()
def IS(): return sys.stdin.readline().rstrip()

H, W = ISI()
a = [["
for i in range(H):
    s = ["
    a[i+1] = s
for i in range(H+2):
    print(*a[i])

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

a = ["
for i in range(h):
    a.append("

a.append("

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

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

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

for j in range(H):
    a[j].insert(0, '
    a[j].append('

a.append('
a.insert(0, '

for k in range(H + 2):
    print(''.join(a[k]))

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

s = list([input() for _ in range(H)])

print(''.join(['
for i in range(H):
    print('
print(''.join(['

Solution (Python):
def resolve():
    h,w=map(int,input().split())
    A=['
    print('
    print(*A,sep='\n')
    print('
resolve()

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

Solution (Python):
import sys
import copy
import  math
from _bisect import *
from collections import *
from operator import itemgetter
from math import factorial
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

h, w = na()
s = "
img = [s]
for _ in range(h):
    img.append("
img.append(s)
for i in range(h+2):
    print(img[i])

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())
print('\n'.join(['

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

a = "".join(["

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

print(a)

Solution (Python):

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

h, w = map(int, input().split())
a = [input().replace('\n', '') for _ in range(h)]

print('
for line in a:
    print('
    print(line, end='')
    print('
print('

Solution (Python):
h,w = map(int,input().split())
L = []
L.append(["
for i in range(h):
    l=["
    l.append(input())
    l.append("
    L.append(l)
L.append(["
for i in range(h+2):
    print("".join(L[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())
array = []
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):


def main():
    a,b = map(int,input().split())
    pictureList = [ input() for _ in range(a)]
    row = b+2

    print(row*'
    for i in pictureList:
        print('
    print(row*'
    


if __name__== "__main__":
    main()

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

for a in A:
  print(*a,sep='')

Solution (Python):
H,W = map(int,input().split())
s = ["
for _ in range(H):
    s.append("
s.append("
for i in range(H+2):
    print(s[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())
a=[input() for _ in range(h)]
print('
for i in range(h):
  print('
print('

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

if __name__ == '__main__':
    main()

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

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

for i in range(h):
  str += input().split()
print("

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

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

for x in a:
    print(x)

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

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

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

Solution (Python):
h, w = map(int, input().split())
print('
[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())
S = [input() for i in range(h)]
print("
for s in S:
  print("
print("

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

Solution (Python):
y,x = map(int,input().split())
str = [["
a = [0 for i in range(y)]
for i in range(y):
    a[i] = input()
for i in range(1,y+1):
    for z in range(1,x+1):
        check = a[i-1]
        str[i][z] = a[i-1][z-1]

for i in range(y+2):
    print("".join(str[i]))

Solution (Python):
h,w = map(int,input().split())
l = [[] for i in range(h+2)]
l[0] = ["
for i in range(h):
    a = list(input())
    a.append("
    a.reverse()
    a.append("
    a.reverse()
    l[i+1] = a
l[h+1] = ["
for i in range(h+2):
    if i != 0:
        print()
    for x in l[i]:
        print(x,end="")

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

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

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

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

for i in range(H + 2):
    if i == 0 or i == H + 1:
        print("".join(a[i]))
    else:
        a[i][1:W + 1] = input().split()
        print("".join(a[i]))

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

for i in range(H):
    a[i + 1][1:W + 1] = input().split()

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

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

for i in range(W + 1):
    a[0] += "
    a[H + 1] += "

for i in range(1, H + 1):
    a[i] += "".join(input().split()) + "

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

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

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

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

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

ans=[["0" for _ in range(w+2)] for _ in range(h+2)]
for i in range(w+2):
    ans[0][i]="
    ans[h+1][i]="
    
for i in range(w):
    for j in range(h):
        ans[j+1][i+1]=a[j][i]
        
for i in range(h):
    ans[i+1][0]="
    ans[i+1][w+1]="
for i in range(h+2):
    print(''.join(ans[i]))

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

Solution (Python):

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

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

    A = input()
    print(A, end='')

    print('

print('

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

print('
for _  in range(H):
  print('
  print(input(),end='')
  print('
print('

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

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

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

Solution (Python):
h,w=map(int,input().split())
a=[]
for i in range(h):
  a.append(input())
for i in range(w+2):
  if(i!=w+1):
    print("
  else:
    print("
for i in range(h):
  print("
  print(a[i],end="")
  print("
for i in range(w+2):
  if(i!=w+1):
    print("
  else:
    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())

frame=[]
frame.append('
for _ in range(h):
  frame.append('
frame.append('

print(*frame,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())
a = [input() for _ in range(h)]

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

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

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

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

Solution (Python):
import math
import sys
from itertools import accumulate
from functools import reduce
import queue
from fractions import gcd

def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

sys.setrecursionlimit(10000)

mod = 1000000007

"""

a = 100
b = 0.987654321
print("{0:06d}-{1:6f}".format(a,b))
000100-0.987654


char_list = list("abcd") 



    = sys.stdin.readline().rstrip()
    = list(sys.stdin.readline().rstrip())
    = [list(list(sys.stdin.readline().rstrip())) for i in range(h)] 


    = int(sys.stdin.readline())
    = map(int, sys.stdin.readline().split())
    = list(map(int, sys.stdin.readline().split()))
    = [list(map(int,list(sys.stdin.readline().split()))) for i in range(h)]  
"""

if __name__ == "__main__":
    h,w= map(int, sys.stdin.readline().split())
    print("
    for i in range(h):
        print("
    print("

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

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

A = ["
for i in range(H+2):
  print (A[i])

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

for i in range(h+2):
  if i == 0 or i == h+1:
    sharps = ["
    print("".join(sharps))
  else:
    s = input()
    print("

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

Solution (Python):
H, W = map(int, input().split())
A = [("
A.insert(0, ("
A.append(("


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

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

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

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

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

Solution (Python):
h, w = [int(x) for x in input().split()]
a = '\n'.join('
print('\n'.join(['

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

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

for i in a:
    print(i)

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

for j in range(H+2):
    if j == 0 or j == H+1:
        print("
    else:
        tmp = "
        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(' '))
print('
for i in range(H):
  x = input()
  print('
print('

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

temp=["
mass = []
mass.append(temp)
for _ in range(a):
  mass.append(["
mass.append(temp)

for retsu in mass:
  retsu = "".join(retsu)
  print(retsu)

Solution (Python):
H,W = map(int, input().split())
pix = [input() for _ in range(H)]
pix.insert(0,"
pix.append("
new_pix = list(map(lambda x: "
print(*new_pix, sep="\n")

Solution (Python):

import sys
INF = float("inf")


def main():
    H, W = map(int, input().split())
    a = []
    for h in range(H):
        a.append(input())
    print("
    for h in a:
        print("
    print("

    pass


if __name__ == '__main__':
    main()

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

Solution (Python):

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math
import itertools
import random
 




 
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    H,W = inputMap()
    a = []
    for i in range(H):
        tmp = input()
        tmp = "
        a.append(tmp)
        
    tmp = ""
    for i in range(W+2):
        tmp += "
    
    print(tmp)
    for i in a:
        print(i)
    print(tmp)
    
    
class UnionFind(object):
	def __init__(self, n=1):
		self.par = [i for i in range(n)]
		self.rank = [0 for _ in range(n)]
		self.size = [1 for _ in range(n)]
		
	
	def find(self, x):
		if self.par[x] == x:
			return x
		else:
			self.par[x] = self.find(self.par[x])
			return self.par[x]
		
	
	def union(self, x, y):
		x = self.find(x)
		y = self.find(y)
		if x != y:
			
			sum = self.size[x] + self.size[y]
			self.size[x] = sum
			self.size[y] = sum
			
			if self.rank[x] < self.rank[y]:
				x, y = y, x
			if self.rank[x] == self.rank[y]:
				self.rank[x] += 1
			self.par[y] = x
	
	
	def is_same(self, x, y):
		return self.find(x) == self.find(y)
		
	
	def getSize(self, x):
		par_x = self.find(x)
		return self.size[par_x]
	
if __name__ == "__main__":
	main()

Solution (Python):
h,w = map(int,input().split())
l=[str(input()) for i in range(h)]
p="
print(p*(w+2))
for j in l:
    print(p+j+p)
print(p*(w+2))

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

print("
print("")
for i in range(h):
    print("
    print(a[i],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())
a = [input().split() for i in range(h)]
 
for i in range(h):
    a[i].insert(0, "
    a[i].append("
 
a.insert(0, ["
a.append(["

for i in a:
    print("".join(map(str,i)))

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

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

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

Solution (Python):
import sys
input=sys.stdin.readline

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

for i in range(h):
    s = input().strip()
    for j in range(w):
        a[i+1][j+1] = s[j]

for i in a:
    s = ""
    for c in i:
        s += c
    print(s)

Solution (Python):
h,w = (int(i) for i in 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=[]

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

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

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

for i in range(h):
    a[i].insert(0, "
    a[i].append("

a.insert(0, ["
a.append(["
for i in a:
    print("".join(list(map(str,i))))

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

AHWr=[['

for i in range(H+2):
    for j in range(W+2):
        if 1<= i and i<=H and 1<=j and j<=W:
            print(AHW[i-1][j-1],end="")
        else:
            print(AHWr[i][j],end="")
    print()

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

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 = [input() for i in range(h)]
for i in range(h+1):
  if i == 0:
    print('
  else:
    print('
print('

Solution (Python):
h, w = map(int, input().split())
m = [list(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 i in range(h)]
print('
for i in range(h):
  print('
print('

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

Solution (Python):
a, b = map(int, input().split())
c = ["
for i in range(a):
    c.append(list("
c.append("
for i in range(len(c)):
    print("".join(c[i]))

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

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

for i in range(H+1):
    if i == 0:
        print("
    if i == H:
        print("
    else:
        print("

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

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