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())
ansLst = []
ansLst.append('
for i in range(H):
    ansLst.append('
ansLst.append('
for i in ansLst:
    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 = [input() for i in range(h)]

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

ans = []
ans.append(tmp)
for c in a:
    ans.append("
ans.append(tmp)

for c in ans:
    print(c)

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

Solution (Python):
H, W = map(int, input().split())
edge = [['
output = edge + [['
for row in output:
  row_str = ''.join(row)
  print(row_str)

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

Solution (Python):





def main():
    h, w = map(int, input().split())
    A = []
    for _ in range(h):
        A.append(input())
    for _ in range(w+2):
        print('
    print('')
    for hh in range(h):
        print('
    for _ in range(w+2):
        print('
    print('')

if __name__ == '__main__':
    main()

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

s = ["
for i in range(len(s)):
    print(s[i])

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())
matrix = [input() for _ in range(h)]
print('
for m in matrix:
    print('
print('

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

S = ""
for i in range(W+2):
  S += "

A = []
A.append(S) 

for i in range(H):
  A.append("
A.append(S)

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

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 = list(map(int,input().split()))
a = [input() for i in range(H)]

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

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

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

Solution (Python):

a, b = map(int, input().split())
l =  [[] for _ in range(a+2)]
l[0] = '
l[a+1] = '

for i in range(1, a+1):
    l[i] = '

for i in range(a+2):
    print(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())

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

Solution (Python):
a, b = map(int, input().split())
c = ["
for i in range(a):
    c.append("
c.append(["
for i in range(a + 2):
    print("".join(c[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())
res = ['']*(H+2)
res[0] = '
res[-1] = '
for _ in range(H):
    res[_+1] = '
for _ in res:
    print(_)

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')


def A():
    x, y = LI()
    a = [1, 3, 5, 7, 8, 10, 12]
    b = [4, 6, 9, 11]
    c = [2]
    if x in a and y in a:
        print("Yes")
        return
    if x in b and y in b:
        print("Yes")
        return
    if x in c and y in c:
        print("Yes")
        return
    print("No")
    return


def B():
    h, w = LI()
    print("
    for _ in range(h):
        a = ["
        for s in S():
            a.append(s)
        a.append("
        print("".join(a))
    print("
    return


def C():
    return


def D():
    return



if __name__ == '__main__':
    B()

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

Solution (Python):
h,w=map(int,input().split())
l=[input() for _ in [0]*h]
print('
for s in l:print('
print('

Solution (Python):
def main():
    H, W = map(int, input().split())
    ans = '
    for _ in range(H):
        ans += '\n
    ans += '\n' + '
    print(ans)


main()

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

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

Solution (Python):

h, w = map(int, input().split(' '))
P = []
for i in range(h):
    tmp = list(input())
    tmp.insert(0, '
    tmp.append('
    P.append(tmp)



line = ['
P.insert(0, line)
P.append(line)

for row in P:
    print(''.join(row))

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

ans_array = [['

for i in range(H):
    s = list(input())
    for j in range(W):
        ans_array[i + 1][j + 1] = s[j]

ans = ''
for i in range(H + 2):
    for j in range(W + 2):
        ans += ans_array[i][j]
    print(ans)
    ans = ''

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

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

Solution (Python):
a,b=map(int,input().split())
c=[str(input()) for i in range(a)]
for i in range(a):
  c[i]="
c=["
for i in range(a+2):
  print(c[i])

Solution (Python):


def main():
    high, width = map(int, input().split())
    ans = [''.join(['
    ans = ans + ['


    for i in range(high + 2):
        print(ans[i])

if __name__ == '__main__':
    main()

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

a = ["

for i in a:
    print("

Solution (Python):


def main(H,W,A):
    print("
    for i in range(H):
        print("
    print("
    
if __name__ == '__main__':
    H, W = map(int, input().split())
    A = [input() for i in range(H)]
    
    main(H,W,A)

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

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

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

for i in a:
    print(i)

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

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

print("

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

print("

Solution (Python):



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

x = ['
a = [list(input()) for _ in range(h)]
for i in range(h):
    a[i].insert(0,'
    a[i].append('
a.insert(0,x)
a.append(x)
for i in range(h+2):
    print(''.join(a[i]))

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

print('

Solution (Python):
y,x = map(int, input().split())
li = []
for i in range(y):
    li.append(list(input()))
print('
for i in li:
    print('
    for k in i:
        print(k, end = '')
    print('

print('

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

Solution (Python):
H, W = map(int, input().split())
lst = ['
for _ in range(H):
    lst.append('
lst.append('
print('\n'.join(lst))

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 h in range(H):
    line = '
    print(line)
print('

Solution (Python):

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

sharp = ""
for i in range(W+2):
    sharp += "

print(sharp)

for i in range(H):

    a = input()
    a = "
    print (a)

print (sharp)

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

Solution (Python):



H, W = map(int, input().split())
in_li = [list(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:
            print("
        elif j == 0 or j == W + 1:
            print("
        else:
            print(in_li[i - 1][j - 1], end="")
    print("")

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

print("
for s in S:
    print("
print("

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

for i in range(a[0]+2):
  if i==0 or i==a[0]+1:
    print(c)
  else:
    print("

Solution (Python):
H, W = map(int, input().split())
ans = [input() for i in range(H)]
print('
for i in ans:
    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())
buf = '
lst = []
lst.append(buf)
for i in range(h):
    t = '
    lst.append(t)
lst.append(buf)

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

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

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

ans = ["
for i in range(H):
    tmp = "
    tmp += A[i]
    tmp += "
    ans.append(tmp)

ans.append("

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

Solution (Python):

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

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):
from sys import stdin
H,W = [int(x) for x in stdin.readline().rstrip().split()]
data = ["
for _ in range(H):
    data.append("
data.append("
for j in data:
    print(j)

Solution (Python):
H, W = [int(s) for s in input().split()]

def main():
    for h in range(H + 2):
        if h in [0, H + 1]:
            print('
            continue
        print('

if __name__ == '__main__':
    main()

Solution (Python):

import sys



def main(h, w, a):
    ret = []
    ret.append(''.join(['
    for v in a:
        r = '
        ret.append(r)
    ret.append(''.join(['
    for r in ret:
        print(r)

if __name__ == '__main__':
    h, w = map(int, input().split())
    a = []
    for i in range(h):
        a.append(input())
    main(h, w, a)

Solution (Python):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

H, W = nl()

pixels = []
for i in range(H):
    pixels.append(s())

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

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

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

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

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

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


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

Solution (Python):
from collections import Counter
from collections import deque
from functools import reduce
from pprint import pprint
import bisect
import copy
import fractions
import itertools
import math
import queue
import random
import sys
import time
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def MI(): return map(int, sys.stdin.readline().split())
def II(): return int(sys.stdin.readline())
def IS(): return input()
def C(x): return Counter(x)
def GCD_LIST(numbers): return reduce(fractions.gcd, numbers)
def LCM_LIST(numbers): return reduce(LCM, numbers)
def LCM(m, n): return (m * n // fractions.gcd(m, n))


h, w = MI()
a = [IS() for _ in range(h)]
print('
for i in range(h):
    print('
print('

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

lst = []
for i in range(H):
    lst += ['


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

for i in range(H):
    print (lst[i])

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

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

Solution (Python):
def abc():
    h, w = map(int, input().split())
    ans = list()
    ans.append('
    for i in range(h):
        ans.append('
    ans.append('
    for x in ans:
        print(x)


abc()

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 = "
for i in range(h+2):
  if i == 0 or i == h+1:
    print(s)
  else:
    print("

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

Solution (Python):
import bisect
import os
from collections import Counter, deque
from fractions import gcd
from functools import lru_cache
from functools import reduce
import functools
import heapq
import itertools
import math
import numpy as np
import re
import sys

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(2147483647)
INF = float("inf")

H, W = list(map(int, sys.stdin.readline().split()))
A = np.array([list(sys.stdin.readline().rstrip()) for _ in range(H)])

ans = np.full(np.array(A.shape) + 2, '
ans[1:-1, 1:-1] = A
print('\n'.join(map(lambda r: ''.join(r), ans)))

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

for i in range(h+2):
    if i == 0:
        print("
for i in lst:
    ans = "
    print(ans)

print("

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

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

answer = ['
for _ in range(H):
  answer.append('
answer.append('

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

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

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

ANS=[["

for i in range(H):
    for j in range(W):
        ANS[i+1][j+1]=MAP[i][j]

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

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

Solution (Python):
import bisect
from operator import itemgetter
import math
import functools
import itertools
import numpy as np
import sys
MAX_INT = int(10e10)
MIN_INT = -MAX_INT
mod = 1000000007
sys.setrecursionlimit(1000000)
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

H,W = IL()
p = [[i for i in "

for i in range(1,H+1):
  s = S()
  for j in range(W):
    p[i][j+1] = s[j]
    
for i in p:
  print("".join(i))

Solution (Python):
H, W = [int(i) for i in input().split()]
print("
for _ 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())
hw = []
for i in range(H):
    hw.append(input())

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

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



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

a = [ "

ls.append(a)
ls.insert(0,a)

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

Solution (Python):


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

a = [['

a.insert(0, ['
a.insert(len(a), ['

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

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

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

print('

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

Solution (Python):
H,W = map(int,input().split())
para_val = [input() for i in range(H)]
for i in range(H+2):
    if i == 0 or i== H+1 :
        a = ["
        ans = "".join(a)
        print(ans)
    else:
        b = ["
        b.append(para_val[i-1])
        b.append("
        ans = "".join(b)
        print(ans)

Solution (Python):


import itertools
import collections
import bisect

def main():
    H, W = map(int, input().split())
    lines = [input() for _ in range(H)]
    sharp = '

    print(sharp)
    for line in lines:
        print('

    print(sharp)

if __name__ == '__main__':
    main()

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

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

print('

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

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

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

moji_arr = [0]*h
for i in range(h):
    moji_arr[i] = input()

sharp_arr = [0]*(h+2)

sharp_arr[0] = '
for i in range(h):
    sharp_arr[i+1] = '
sharp_arr[h+1] = '

for i in range(h+2):
    print(sharp_arr[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())
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 = []
for i in range(h):
    a.append(input())
print("
for j in range(h):
    print("
print("

Solution (Python):
h, w = [ int(v) for v in 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())
print("
for _ 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):
def main():
    H, W = [int(ele) for ele in input().split()]
    frame = ["
    canvas = [[str(ele) for ele in input().split()] for _ in range(H)]

    print("".join(frame))
    for ele in canvas:
        print("

    print("".join(frame))


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())
ansls = []
ansls.append('
for i in range(h):
    ls = '
    ls += input()
    ls += '
    ansls.append(ls)
ansls.append('
for j in ansls:
    print(j)

Solution (Python):


def solve():
    H, W = list(map(int, input().split()))

    ans = "
    for h in range(H):
        ans += "
    ans += "
    
    print(ans)

if __name__ == "__main__":
    solve()

Solution (Python):
h,w = map(int,input().split())
for i in range(h+2):
  if i ==0 or i == h+1:
    for d in range(w+1):
      print("
    print("
    continue
  print("

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

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

print('
for row in a:
    print('
print('

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

s_arr = ["
print("
for s in s_arr:
  print(s)
print("

Solution (Python):
a,b = map(int,input().split())
ans = []
for _ in range(a):
  c = input()
  ans.append('
print('
for _ in ans:
    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)]

A_framed = ['
for a in A:
    A_framed.append('
A_framed.append('


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

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

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

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

Solution (Python):

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


l=['

for i in range(H):
  s=input()
  l.append('


l.append('


for x in l:
  print(x)

Solution (Python):

def pixel_input(H,W,border="."):
    pixel = [[border]*(W+2)] + \
    [[border] + list(input()) + [border] for _ in range(H)] + \
    [[border]*(W+2)]
    return pixel


def pixel_print(pixel):
    for i in range(len(pixel)):
        print("".join(pixel[i]))



def ipt(N=0,switch=0):
    if N == 0:
        return list(map(int,input().split()))
    else:
        if switch==0:
            return [list(map(int,input().split())) for _ in range(N)]
        else:
            return [int(input()) for _ in range(N)]
          

H,W=ipt()
pixel_print(pixel_input(H,W,"

Solution (Python):
h,w=map(int,input().split())
l=[["
for i in range(h):
    l.append(list(str(input())))
    l[i+1].append("
    l[i+1].insert(0,"
l.append(["
for k in range(len(l)):
    print("".join(l[k]))

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

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

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

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

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

for w in range(W+2):
  print("
print("")
for h in range(H):
  row = str(input())
  print("
for w in range(W+2):
  print("

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

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

for i in range(h):
    ans.append(str('
ans.append('

for i in ans:
    print(i)

Solution (Python):

import copy
import random
import bisect 
import fractions 
import math

mod = 10**9+7

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


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

Solution (Python):
H,W = [int(x) for x in input().split()]
a = ['
print('
for i in a:
  print(i)
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=['
c='
for j in [c]+a+[c]:
  print(j)

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

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

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

for i in range(H):
    s = input()
    a[i+1] = '

for i in a:
    print(i)

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

Solution (Python):



H,W = map(int, input().split())
An = ['
for _ in range(H):
  An.append('
An.append('
print(*An,sep='\n')

Solution (Python):
h, w = map(int, input().split())
a = [['
for i in range(h):
    s = list(input())
    for j, c in enumerate(s):
        a[i+1][j+1] = c
for line in a:
    print(*line, sep='')

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

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

Solution (Python):

h, w = list(map(int, input().rstrip().split()))
lst = [input().rstrip() for _ in range(h)]
ans = ["

for i in range(h):
    ans.append("
ans.append("

for i in ans:
    print(i)

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


print("
for i in range(h):
    x=input()
    print("
    
print("

Solution (Python):
import sys
from collections import Counter

h, w = map(int, input().split())
a_list = [input() for i in range(h)]
a_list.insert(0, '
a_list.insert(len(a_list), '

for i in range(len(a_list)):
    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 = [input() for _ in range(H)]

print("
for ai in a:
    print("
print("

Solution (Python):

def read_input():
    h, w = map(int, input().split())

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

    return h, w, slist

def submit():
    h, w, slist = read_input()

    print('
    for s in slist:
        print('
    print('

if __name__ == '__main__':
    submit()

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

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

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

print('
for ai in A:    
    print('
print('

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

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

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

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

print("
for element in alist:
    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 = []
a.append(["
for i in range(H):
       a.append(list("
a.append(["
for j in range(len(a)):
        print("".join(a[j]))

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

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

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

print('
for ai in a:
    print('
print('

Solution (Python):
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    n, m = f()
    s = [ input() for i in range(n)]


    for i in range(n+2):
        if i == 0 or i == n+1:
            for j in range(m+2):
                print('
            print()
        else:
            print('
            print(s[i-1], end = '')
            print('


solve()

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

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

S = [['

for i in range(1, h+1):
    S[i] = ['

for l in S:
    print(''.join(l))

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

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

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

Solution (Python):

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

ans = []
ans.append("
for i in range(h):
  s = input()
  tmp = "
  tmp += s
  tmp += "
  ans.append(tmp)
  

ans.append("
for i in ans:
  print(i)

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

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