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):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    INF = float("inf")
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    H,W = (int(_) for _ in input().split())
    ans = []
    ans.append('
    for i in range(H):
        a = input().rstrip()
        a = '
        ans.append(a)
    ans.append('
    print('\n'.join(ans))
    
if __name__ == '__main__':
    main()

Solution (Python):
N_list = [int(x) for x in input().split()]
char_list = []
for i in range(N_list[0]):
    char_list.append(input())
    
start_line = '
print(start_line)
for i in range(N_list[0]):
    print('
print(start_line)

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

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 = [None for i in range(h + 2)]
a[0] = ['
a[-1] = ['
for i in range(1, h + 1):
    a[i] = ['

for i in range(h + 2):
    print(''.join(a[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(0,H):
    print("

print("

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

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):
h,w=map(int,input().split())
print('
for i in range(h):
  a=input()
  print('
print('

Solution (Python):
import sys
ns = lambda: sys.stdin.readline().rstrip()
ni = lambda: int(ns())
nm = lambda: map(int, sys.stdin.readline().split())
nl = lambda: list(nm())

h, w = nm()
a = [['
a.insert(0, ['
a.append(['
for i in range(h + 2):
    print(''.join(a[i]))

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

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

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())
ans = [["

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

for i in range(h):
    for j in range(w):
        ans[i+1][j+1] = a[i][j]

for i in range(h+2):
    for j in range(w+2):
        print(ans[i][j],end="")
    print()

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

Solution (Python):
import sys

def main():
    input = sys.stdin.readline
    H, W = map(int, input().split())

    ud = '
    print(ud)
    for _ in range(H):
        a = input().strip()
        print('
    print(ud)


if __name__ == '__main__':
    main()

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):
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 = [input() for _ in range(H)]
print("
for a in A:
    print("
print("

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

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

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

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

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

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

print("")

for i in range(h):
  print("
  print(hoge[i],end="")
  print("
  
for i in range(w+2):
  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 = [input().split() for _ in range(H)]

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

Solution (Python):


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


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

a = [["

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

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

Solution (Python):
l = []

H, W = map(int, input().split())
l.append('
for i in range(H):
    a = input()
    l.append('
l.append('

print('\n'.join(l))

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

X=['
for i in range(h):
    s=input()
    Y='
    X.append(Y)
X.append('

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

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

Solution (Python):

from collections import defaultdict
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
mod = 1000000007


"""
x,y = LI()
f = [0,1,2,1,3,1,3,1,1,3,1,3,1]
if f[x] == f[y]:
    print("Yes")
else:
    print("No")
"""

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


"""
h,w = LI()
ans = float("inf")
x = w//2
y = h//2
if not w%2:
    for i in range(1,h):
        if (h-i)%2 == 0:
            ans = min(ans,abs(w*i-w*(h-i)//2))
        ans = min(ans,abs(w*i-x*(h-i)))
else:
    for i in range(1,h):
        if (h-i)%2 == 0:
            ans = min(ans,abs(w*i-w*(h-i)//2))
        if w*i < x*(h-i):
            ans = min(ans,abs(w*i-(x+1)*(h-i)))
        elif w*i < (x+1)*(h-i):
            ans = min(ans,h-i)
        else:
            ans = min(ans,abs(w*i-x*(h-i)))
if not h%2:
    for i in range(1,w):
        if (w-i)%2 == 0:
            ans = min(ans,abs(h*i-h*(w-i)//2))
        ans = min(ans,abs(h*i-y*(w-i)))
else:
    for i in range(1,w):
        if (w-i)%2 == 0:
            ans = min(ans,abs(h*i-h*(w-i)//2))
        if h*i < y*(w-i):
            ans = min(ans,abs(h*i-(y+1)*(w-i)))
        elif h*i < (y+1)*(w-i):
            ans = min(ans,w-i)
        else:
            ans = min(ans,abs(h*i-y*(w-i)))
print(ans)
"""

Solution (Python):
import collections

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

for i in range(H):
    a[i] = '
    
border = '
for i in range(W):
    border += '

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

Solution (Python):
def picture_frame(H: int, W: int, A: list)->list:
    return ['


if __name__ == "__main__":
    H = 0
    H, W = map(int, input().split())
    A = [input() for _ in range(H)]
    ans = picture_frame(H, W, A)
    print('\n'.join(ans))

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

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

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

print('
for c in s:
    print('
print('

Solution (Python):
H, W = list(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())
listA = [input() for i in range(h)]
a = "
print(a)
for j in range(h):
  print("
print(a)

Solution (Python):
n, m = map(int, input().split())
p = ['
for r in p:
    print(r)

Solution (Python):




H,W= map(int,input().split())
f = [0] * (H + 2)
for i in range(H):
    block_ = "
    if i ==0:
        print(block_)
    x = input()
    x = "
    print(x)
    if i == H-1:
        print(block_)

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

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

l = [ ['

print('
for i in range(h):
	print(l[i][0])
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 s in a:
    print(s)

Solution (Python):
H,W= map(int,input().split())
metric= []
metric.append("
for h in range(H):
    metric.append("
metric.append("
for met in metric:
    print(met)

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

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

header = ''
for _ in range(W+2):
    header += '

B = []
for i in range(H):
    B.append('

print(header)
print(*B, sep="\n")
print(header)

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

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

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

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

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 x in a:
  print(x)

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

Solution (Python):
_,w,*s=open(0).read().split();t=['

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

for a in a_list:
    a.insert(0,'
    a.append('
a_list.insert(0,['
a_list.append(['

for a in a_list:
    print(''.join(a))

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


if __name__ == "__main__":
    main()

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

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

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

print(ans)

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

result = ["
for _ in range(H):
  c = input()
  result.append("
result.append("
print("\n".join(result))

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

Solution (Python):

import sys
sys.setrecursionlimit(10**9)

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

grid = [["

for i in range(1, H+1):
    for j, c in enumerate(input()):
        grid[i][j+1] = c

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

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

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

a = ['


a = ['

for s in a: print(s)

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

Solution (Python):
""" AtCoder """

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

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

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

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

for _ in range(h):
    A = input()
    A = "
    x.append(A)

x.append(a)

for i in range(h+2):
    print(x[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)]
print('
for i in range(h):
	print('
print('

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

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

Solution (Python):

H, W = map(int, input().split())
pic = [['
for i in range(H):
    for j, k in enumerate(list(input())):
        pic[i + 1][j + 1] = k
for i in pic:
    print(''.join(i))

Solution (Python):
from statistics import mean, median,variance,stdev
import numpy as np
import sys
import math
import fractions
import itertools
import copy

def j(q):
    if q==1: print("yes")
    else:print("no")
    exit(0)


def ct(x,y):
    if (x>y):print("")
    elif (x<y): print("")
    else: print("")

def ip():
    return int(input())



h,w= (int(i) for i in input().split())      







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


c = []
e = ["
c.append(''.join(e))
for i in range(h):
    d = ["
    c.append(''.join(d))
e = ["
c.append(''.join(e))
for  i in range(h+2):
    print(c[i])

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())
a = [input() for _ 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):
  a = input()
  print('
print('

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

for i in range(H+2):
    if i == 0 or i == H+1:
        for j in range(W+2):
            if j == W+1:
                print('
            else:
                print('
    else:
        print(_input[i-1])

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

print('
for a in aa:
    print('
print('

Solution (Python):
_,w,*s=open(0).read().split();t=['

Solution (Python):
_,w,*s=open(0).read().split();t=['

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 _ in range(h)]
print("
for i in range(h):
    print("
print("

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

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

print "
for t in a:
  print "
print "

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

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

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

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

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

bo = '
print(bo)
for _ in range(h):
    aa = '
    print(aa)
print(bo)

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

Solution (Python):
h, w = map(int, input().split())
a = [['
print(''.join(a[0]))
for x in range(1, h+1):
    line = input().rstrip()
    a[x][1:w+1] = line
    print(''.join(a[x]))
print(''.join(a[h+1]))

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

print("
for i in A:
    print(i)
print("

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

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

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

sh = '

print(sh * (W + 2))

for i in range(H):
    print(sh + input() + sh)

print(sh * (W + 2))

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

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

Solution (Python):

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

for i in range(h):
    temp = input()
    pic.append(temp)

li = '

print(li)

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

print(li)


if __name__ == '__main__':
    pass

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

Solution (Python):
h,w=map(int,input().split())
list=[]
a=[[b for b in input()] for _ in range(h)]
for i in range(w):
    list.append('
a.insert(0,list)
a.append(list)
for j in range(len(a)):
    a[j].insert(0,'
    a[j].append('
for k in range(len(a)):
    for l in range(w+2):
        print(a[k][l],end="")
    print('')

Solution (Python):
H, W = map(int, input().split())
A = [[a for a in input()] for _ in range(H)]
Sharps = [ ['
for i in range(1,H+1):
    for j in range(1,W+1):
        Sharps[i][j]=A[i-1][j-1]


for i in Sharps:
    print('.'.join(i).replace('.',''))

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

Solution (Python):
x,y = map(int,input().split())
ans = []
blank = ['

ans.append(blank)
for _ in range(x):
    l =['
    ans.append(l)
ans.append(blank)

for x in ans:
    for y in x:
        print(y,end='')
    print()

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

for i in range(w+2):
    print("
print()
geta = "
for i in range(h):
    print("{}{}{}".format(geta,a[i],geta),end="")
    print()
for i in range(w+2):
    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 func():
    pass


def main():
    h, w = map(int, input().split())
    p = []
    for i in range(h):
        s = input()
        p.append(s)

    print("
    for pi in p:
        print("
    print("



if __name__ == '__main__':
    main()

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

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

print('

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

a.append('

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, m = map(int, input().split())
C = [input() for i in range(h)]

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

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


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

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

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

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

Solution (Python):
line = input().split(" ")
h = int(line[0])
w = int(line[1])
arr =[]
for i in range(h):
    arr.append(input())

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

for i in arr:
    print("

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

Solution (Python):
N,M = map(int,input().split())
A = []
for i in range(N):
    A.append(str(input()))
print("
for i in range(N):
   print("
print("

Solution (Python):

import math
def getInt(): return int(input())
def getIntList(): return [int(x) for x in input().split()]
def getIntFromRows(n): return [int(input()) for i in range(n)]
def getIntMat(n):
    mat = []
    for i in range(n): mat.append(getIntList())
    return mat

def zeros(n): return [0 for i in range(n)]
def zeros2(n, m): return [[0 for i in range(m)] for j in range(n)]
N1097 = 10**9 + 7 
debug = True
def db(x): 
    if debug: print(x)

debug = True
h,w = getIntList()
a = ['
for i in range(h):
    a.append('
a.append('
for i in range(h+2):
    print(a[i])

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

Solution (Python):
h,w = (int(i) for i in input().split())
sharp = "
print(sharp)
for i in range (h):
 ans = input()
 output = '
 print(output)
print(sharp)

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

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

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

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

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

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

print("
for i in a:
    print("
print("

Solution (Python):
from sys import stderr, setrecursionlimit
from functools import reduce
from operator import add
setrecursionlimit(2147483647)
def getInt():
    return int(input())
def getInts():
    return [int(i) for i in input().split()]
def getIntLines(n=1):
    res = []
    for _ in range(n):
        res.append(getInt())
    return res
def getIntsLines(n=1):
    res = []
    for _ in range(n):
        res.append(getInts())
    return res
def debug(*x, sep=" ", end="\n"):
    for item in x:
        stderr.write(str(item))
        stderr.write(sep)
    stderr.write(end)

h, w = getInts()
ans = ['
for _ in range(h):
    line = '
    line += input()
    line += '
    ans.append(line)
ans.append('
print(*ans, sep='\n')

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

Solution (Python):
int_h, int_w = map(int,input().split())

ar_in = list()
for i in range(int_h):
    ar_in.append(list(input().split()))

print("

for i in ar_in:
    print("

print("

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

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

Solution (Python):
def abc062_b():
    h, w = map(int, input().split())
    a = [None] * (h + 2)
    a[0] = a[-1] = ["
    for i in range(1, h + 1):
        a[i] = ["

    for ln in a:
        print("".join(ln))


abc062_b()

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

Solution (Python):
temp = input().rstrip().split(" ")
H = int(temp[0])
W = int(temp[1])
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 s in a:
  print(s)

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

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

Solution (Python):



def main():
    """Function."""
    h, w = map(int, input().split())

    sharp = ""
    for _ in range(w+2):
        sharp += "
    print(sharp)

    for _ in range(h):
        dum = "
        a = str(input())
        dum += a
        dum += "
        print(dum)

    print(sharp)


if __name__ == "__main__":
    main()

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

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

result = []
for a in A:
  result.append('
waku = '
result.insert(0,waku)
result.insert(len(A)+1,waku)
for r in result:
  print(r)

"""
お前の目は節穴か？
"""

Solution (Python):
def main():
    h, w = map(int, input().split())
    coord = [input() for _ in range(h)]
    print('
    for row in coord:
        print('
    print('


if __name__ == '__main__':
    main()

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

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

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

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

pictures.append("

for picture in pictures :
    print(picture)

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

print("

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

print("

Solution (Python):
import sys
H, W = map(int, raw_input().split())
a = [raw_input() for _ in range(H)]
for i in range(H + 2):
    for j in range(W + 2):
        if i == 0 or j == 0 or i == H + 1 or j == W + 1:
            sys.stdout.write('
        else:
            sys.stdout.write(str(a[i - 1][j - 1]))
    print("")

Solution (Python):

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

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

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

l="

a=''
b=[]

for i in range(H):
    a="
    a+=input()
    a+="
    b.append(a)
print(l)
for i in range(H):
    print(b[i])
print(l)

Solution (Python):

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

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

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

s = []
str_changed = []
for i in range(h):
    s.append([str(m) for m in input().split()])

for i in range(h):
    str_changed.append("".join(s[i]))
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())
tmp=[]
for i in range(h):
    tmp.append(input())
for i in range(h+2):
    if i==0:
        a="
        print(a)
    elif i==(h+1):
        a="
        print(a)
    else:
        print("

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

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

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

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

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

A = []
for h in range(H):
    A.append(str(input()))

print("
for a in A:
    print("
print("

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

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


print('

for s in a:
		l = '
		print(l)
		
print('

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

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

raw_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)]
h = ["

print('
for i in A:
    print('
print('

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

print('
for chrs in str_list:
    print('
print('

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

print(' '.join(['

for i in range(H):
    print('

print(' '.join(['

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

print(''.join(['

for i in range(H):
    print('

print(''.join(['