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

















import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

H, W = MAP()
ans = []

ans.append('
for i in range(H):
    ans.append("
ans.append('

for a in ans:
    print(a)

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

Ans = []

for _ in range(H):
    Ans.append('

print('

for ans in Ans:
    print(ans)

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

ans=[['

for i in range(W):
    for j in range(H):
        ans[j+1][i+1]=a[j][i]
    
for j in range(H+2):
    print("".join(ans[j]))

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


for v in image:
    print(*v)

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

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

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

for _ in range(H):
  L.append('
else:
  L.append('

for l in L:
  print(l)

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

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


for i in range(h):
    if i==0:
        print("
    print("
print("

Solution (Python):
H, W = map(int, input().split())
S = [0]*(H+2)
S[0] = '
S[H+1] = '
for h in range(1,H+1):
  S[h] = '
print(*S,sep='\n')

Solution (Python):
h, w = [int(x) for x in input().split()]
c = "
s = c * (w + 2)
print(s)
for _ in range(h):
    print(c + input() + c)
print(s)

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    H, W = map(int, readline().split())
    ans = [0] * (H + 2)
    ans[0] = '
    for i in range(1, H + 1):
        ans[i] = '
    ans[H + 1] = '

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

    return


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

Solution (Python):
import numpy as np

H, W = (int(x) for x in input().split())

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

for i in range(0, H + 2):
    for j in range(0, W + 2):
        if (i == 0) | (j == 0) | (i == (H + 1)) | (j == (W + 1)):
            print("
        elif j == 1:
            print(a[i - 1], end='')

        if j == (W + 1):
            print("")

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

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

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

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

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

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

answers = []

sharpColumn = ""
for _ in range(len(an[0])+2):
  sharpColumn += "

answers.append(sharpColumn)
for a in an:
  add = "
  for index in range(len(a)):
    if index == len(a)-1:
      add += a[index]+"
    else:
      add += a[index]
  answers.append(add)

answers.append(sharpColumn)

for answer in answers:
  print(answer)

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

ANS = []
for i in range(H+2):
  t = []
  for j in range(W+2):
    if i == 0 or j == 0 or i == H+1 or j == W+1:
      t.append("
    else:
      t.append(A[i-1][j-1])
  ANS.append("".join(t))
  
print("\n".join(ANS))

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

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

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

Solution (Python):
a,b=map(int,input().split())
List = []
mid = ""
for i in range (a):
  List.append(input())
resList = []
for i in range(a+2):
  if i == 0 or i == a+1:
    for j in range(b+2):
      mid += "
    resList.append(mid)
    mid = ""
  else:
    mid = "
    resList.append(mid)
    mid = ""
for element in resList:
  print(element)

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

Solution (Python):


import sys
input=sys.stdin.readline

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

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

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

Solution (Python):
H,W = [int(i) for i in input().split()]
ans = ["
print("\n".join(ans))

Solution (Python):
def actual(H, W, A):
    answer = ''

    answer += '

    for a in A:
        answer += f'

    answer += '

    return answer

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

print(actual(H, W, A))

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

print('
for a_row in a:
    print('
print('

Solution (Python):
MM = input().split()
H = int(MM[0])
W = int(MM[1])
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())


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

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

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

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

for i in range(H):
    for j in range(W):
        ans[i+1][j+1] = A[i][j]

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

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

Solution (Python):
s = input().split()

h = int(s[0])
w = int(s[1])

strings = []

for i in range(h):
    p = input()
    strings.append(p)

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

print('')


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

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

Solution (Python):
import sys
def LI():
    return list(map(int,sys.stdin.readline().rstrip().split()))  
def S(): 
    return sys.stdin.readline().rstrip()

H,W = LI()

print(''.join(['

for i in range(H):
    print('

print(''.join(['

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

w1 = ['

ans = []
ans.append(w1)

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

ans.append(w1)

for j in ans:
    for k in j:
        print(k, end="")
    print()

Solution (Python):
import sys, os, math, bisect, itertools, collections, heapq, queue

from decimal import Decimal
from collections import defaultdict, deque

sys.setrecursionlimit(10000000)

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

lcm = lambda x, y: (x * y) // math.gcd(x, y)

MOD = 10 ** 9 + 7
MAX = float('inf')


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

    H, W = il()
    A = [iss() for _ in range(H)]

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


if __name__ == '__main__':
    main()

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

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

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

print('

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

print('

Solution (Python):
hw,*aaa = open(0).read().splitlines()

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

print('
for aa in aaa:
    print(f'
print('

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

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

print('
for f in field:
    print('
print('

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

Solution (Python):
h,w=map(int,input().split())
A=[list(input()) for i in range(h)]
B=[['
for i in range(h):
    for j in range(w):
        B[i+1][j+1]=A[i][j]
for b in B:
    print(''.join(b))

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

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

for i in range(H):
  tmp = str(input())
  con.append(tmp)

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

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

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

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

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

Solution (Python):

(h, w), *p = [i.split() for i in open(0)]
h = int(h)
w = int(w)+2
print("
for i in p:
    print("
print("

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

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

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

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

print("
for h in range(H):
    for w in range(len(A[h])):
        print(A[h][w], end="")
    print()
print("

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

print("

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

Solution (Python):

H,W = map(int,input().split())
st = ['
st = ['
print(*st,sep='\n')

Solution (Python):
from collections import deque 
H,W = map(int,input().split())
st = [str(input()) for _ in range(H)]

st = deque(st)
for i in range(H):
    st[i] = '
st.appendleft('
st.append('

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

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

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

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

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

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

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


def read():
    H, W = map(int, input().strip().split())
    A = []
    for i in range(H):
        a = list(input().strip())
        A.append(a)
    return H, W, A


def solve(H, W, A):
    B = [["
    for i in range(H):
        for j in range(W):
            B[i+1][j+1] = A[i][j]
    for i in range(H+2):
        print("".join(B[i]))


if __name__ == '__main__':
    inputs = read()
    solve(*inputs)

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

Solution (Python):
h,w = map(int,input().split())
a = list(input() for 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())

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

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

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

print("
for f in field:
    print(f"
print("

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

S=["
for _ in range(H):
    S.append("
S.append("

for s in S:
    print(s)

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

S=["
for _ in range(H):
    S.append("
S.append("

for s in S:
    print(s)

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

Solution (Python):


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

l = []

l.append('

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

l.append('

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

Solution (Python):
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

h,w = i2()
a = ""
for _ in range(w+2):
	 a += "
print(a)
b = "
for i in range(h):
	c = s()
	b += c + "
	print(b)
	b = "
print(a)

Solution (Python):









import sys
input = sys.stdin.readline

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

for i in range(H):
    S = input()
    for j in range(W):
        S1 = S[j]
        pic[i+1][j+1] = S1

for i in range(H+2):
    for j in range(W+2):
        print(pic[i][j], end="")
    print('', end='\n')

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

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

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

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

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

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

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

print((W+2)*"
for h in range(H):
  print("
print((W+2)*"

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

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

Solution (Python):
def main():
  H,W = map(int,input().split())
  _a = [input() for _ in range(H)]
  a =["
  for i in range(H):
    a[i+1] = "
  for i in range(H+2):
    print(a[i])

main()

Solution (Python):
import sys
H,W = map(int,input().split())
if H < 0 or H > 100 or W < 0 or H > 100:
    sys.exit()
pixeles = []
for I in range(H):
    pixeles.append(str(input()))

print("
for L in pixeles:
    print("
    print(L,end='')
    print("
print("

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


if __name__ == "__main__":
    main()

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

Solution (Python):
def resolve():
    H, W = [int(i) for i in input().split()]
    aa = [input() for _ in range(H)]
    print("".join(["
    for r in range(H):
        print("
    print("".join(["


resolve()

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

print ("
for line in grid:
    print ("
    print(''.join(map(str, line)),end="")
    print ("
print ("

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

print('

for i in range(h):
    print('

print('

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

print("
print("\n".join(image))
print("

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

print("".join(sharp))
for j in range(h):
  a = list(input())
  a.append("
  a.insert(0,"
  print("".join(a))
print("".join(sharp))

Solution (Python):
H,W=map(int,input().split())
ans=[["
for y in range(H):
  a=input()
  for x in range(len(a)):
    ans[y+1][x+1]=a[x]
for y in range(H+2):
  for x in range(W+2):
    print(ans[y][x],end="")
  print()

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

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

lis.append(s)
lis.insert(0, s)

for i in lis:
    print(i)

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

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

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

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

Solution (Python):


LI = lambda: list(map(int, input().split()))


H, W = LI()
A = ["


def main():
    x = ["
    ans = x + A + x
    print("\n".join(ans))


if __name__ == "__main__":
    main()

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

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

for i in range(H):
    a = [input()]
    a.insert(0,"
    a.append("
    ma.append(a)

x = "

print(x)
for i in range(H):
    print("".join(ma[i]))  
print(x)

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

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

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

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

Solution (Python):






H,W = map(int, input().split())
ans = ["
for _ in range(H):
    ans.append("
ans.append("
for col in ans:
    print(col)

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

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

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

for i in range(H):
    print("
    print(lines[i], end="")
    print("

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

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

Solution (Python):
H,W = map(int,input().split())
H += 2; W += 2
grid = '
for _ in range(H-2):
    grid += '
grid += '

for i in range(H):
    print(grid[i*W:(i+1)*W])

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

Solution (Python):
def main():
    H, W = map(int, input().split())
    grid = []
    grid.append(['
    for _ in range(H):
        grid.append(['
    grid.append(['
    
    for g in grid:
        print(''.join(g))

if __name__ == "__main__":
    main()

Solution (Python):
h, w = map(int, input().split())
a = list(str(input()) for i in range(h))
s =[]
for j in range(w+2):
    s.append("
print(*s, sep="")
p = []
for k in range(h):
    p.append("
    p.append(a[k])
    p.append("
    print(*p, sep="")
    del p[:]
print(*s, sep="")

Solution (Python):




h, w = map(int,input().split())
header = ['
print(''.join(header))


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

print(''.join(header))

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

for i in range(n+2):
    for j in range(m+2):
        if i==0 or i==n+1 or j==0 or j==m+1:
            print('
        else:
            print(s[i-1][j-1],end='')
        if j==m+1:
            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=[list(input()) for _ in range(H)]

ans=[["
for i in range(1,H+1):
    for j in range(1,W+1):
        ans[i][j]=A[i-1][j-1]

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

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

Solution (Python):
def process(H, W) : 
  str = '
  print(str)
  for i in range(H) : 
    s = '
    s += input()
    s += '
    print(s)
  print(str)


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

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

print("

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

Solution (Python):
import math
from collections import deque
from collections import defaultdict


def readInt():
	return int(input())
def readInts():
	return list(map(int, input().split()))
def readChar():
	return input()
def readChars():
	return input().split()
def factorization(n):
	res = []
	if n%2==0:
		res.append(2)
	for i in range(3,math.floor(n//2)+1,2):
		if n%i==0:
			c = 0
			for j in res:
				if i%j==0:
					c=1
			if c==0:
				res.append(i)
	return res
def fact2(n):
	p = factorization(n)
	res = []
	for i in p:
		c=0
		z=n
		while 1:
			if z%i==0:
				c+=1
				z/=i
			else:
				break
		res.append([i,c])
	return res
def fact(n):
	ans = 1
	m=n
	for _i in range(n-1):
		ans*=m
		m-=1
	return ans
def comb(n,r):
	if n<r:
		return 0
	l = min(r,n-r)
	m=n
	u=1
	for _i in range(l):
		u*=m
		m-=1
	return u//fact(l)
def combmod(n,r,mod):
	return (fact(n)/fact(n-r)*pow(fact(r),mod-2,mod))%mod
def printQueue(q):
	r=copyQueue(q)
	ans=[0]*r.qsize()
	for i in range(r.qsize()-1,-1,-1):
		ans[i] = r.get()
	print(ans)
class UnionFind():
	def __init__(self, n):
		self.n = n
		self.parents = [-1]*n

	def find(self, x): 
		if self.parents[x]<0:
			return x
		else:
			self.parents[x] = self.find(self.parents[x])
			return self.parents[x]

	def union(self,x,y):
		x = self.find(x)
		y = self.find(y)

		if x==y:
			return

		if self.parents[x]>self.parents[y]:
			x,y = y,x

		self.parents[x]+=self.parents[y]
		self.parents[y]=x

	def size(self,x):
		return -1*self.parents[self.find(x)]

	def same(self,x,y):
		return self.find(x)==self.find(y)

	def members(self,x): 
		root = self.find(x)
		return [i for i in range(self.n) if self.find(i)==root]

	def roots(self):
		return [i for i,x in enumerate(self.parents) if x<0]

	def group_count(self):
		return len(self.roots())

	def all_group_members(self):
		return {r: self.members(r) for r in self.roots()} 
def bitArr(n):
	x = 1
	zero = "0"*n
	ans = []
	ans.append([0]*n)
	for i in range(2**n-1):
		ans.append(list(map(lambda x:int(x),list((zero+bin(x)[2:])[-1*n:]))))
		x+=1
	return ans;
def arrsSum(a1,a2):
	for i in range(len(a1)):
		a1[i]+=a2[i]
	return a1
def maxValue(a,b,v):
	v2 = v
	for i in range(v2,-1,-1):
		for j in range(v2//a+1): 
			k = i-a*j
			if k%b==0:
				return i
	return -1
def copyQueue(q):
	nq = queue.Queue()
	n = q.qsize()
	for i in range(n):
		x = q.get()
		q.put(x)
		nq.put(x)
	return nq
def get_sieve_of_eratosthenes(n):
	
	data = [0,0,0]
	for i in range(3,n+1,2):
		data.append(i)
		data.append(0)
	for i in range(len(data)):
		interval = data[i]
		if interval!=0:
			for j in range(i+interval,n-1,interval):
				data[j] = 0
	
	ans = data[:]
	return ans



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




print("

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

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

    image = list()
    image_line = ""
    for i in range(h):
        image_line = input()
        image_line = "
        image.append(image_line)

    sharp_line = ""
    for i in range(w + 2):
        sharp_line += "
    
    image.insert(0, sharp_line)
    image.append(sharp_line)

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

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

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

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

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

for j in range(h):
  result = "
  s = input()
  result += s
  result += "
  print(result)
result =""
for i in range(w+2):
  result += "
print(result)

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

Solution (Python):
h,ｗ = map(int,input().split())
li = ["

for i in li:
    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)]

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

print("

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

Solution (Python):
h, w = map(int, input().split())
A = []
for _ in range(h):
	A.append(input())
B = ['
print(''.join(B))
for e in A:
	print('
print(''.join(B))

Solution (Python):
h,w=map(int,input().split())
a=[]
a.append("
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())

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

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

for i in range(H):
	print('
	print(a[i], end='')
	print('
	
for _ in range(W+2): print('
print()

Solution (Python):
h, w = map(int, input().split())
arr = [''] * h
for i in range(h):
  arr[i] = input()
print('
for e in arr:
  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):
h, w = map(int, input().split())
word1 = '
ans = list()
ans.append(word1)
for x in range(h):
    a = list(map(str, input().split()))
    word2 = '
    ans.append(word2)

ans.append(word1)

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

Solution (Python):
h,w=map(int,input().split())
list1=[[0 for i in range(w)]for j in range(h)]
for i in range(h):
    list1[i]=list(map(str,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 i in range(len(a)):
    print("
print("

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

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

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

Solution (Python):
if __name__ == '__main__':
    a, b = map(int, input().split())

    print("
    for i in range(a):
        s = "
        print(s)

    print("

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

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

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