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, log2
from itertools import accumulate, permutations, combinations, product, groupby
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
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()

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

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

for i in range(H):
	print("

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

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

mat=[["
for i in range(H):
  array=["
  mat.append(array)
mat.append(["

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby, product
from bisect import bisect_left,bisect_right
from heapq import heapify, heappop, heappush
from math import floor, ceil,sqrt
from operator import itemgetter
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def LI2(): return [int(input()) for i in range(n)]
def MXI(): return [[LI()]for i in range(n)]
def printns(x): print('\n'.join(x))
def printni(x): print('\n'.join(list(map(str,x))))
inf = 10**17
mod = 10**9 + 7


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

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

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

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

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

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

def main():
    H, W = map(int, readline().rstrip().split())
    ans = [['
    ans = [''.join(l) for l in ans]
    print(*ans, sep='\n')

if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
n,m=map(int,input().split())
don='
ans=[don]
for i in range(n):
    a="
    ans.append(a)
ans.append(don)
print("\n".join(ans))

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

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

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

Solution (Python):
dimension = list(map(int, input().split()))
h = dimension[0] + 2
w = dimension[1] + 2

print(''.join(["
for i in range(h - 2):
    user = input()
    print("
print(''.join(["

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

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

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

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

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

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

Solution (Python):
import sys

def IS(): return sys.stdin.readline().rstrip()
def II(): return int(IS())
def MII(): return list(map(int, IS().split()))
def MIIZ(): return list(map(lambda x: x-1, MII()))

def DD2(d1,d2,init=0): return [[init]*d2 for _ in range(d1)]
def DD3(d1,d2,d3,init=0): return [DD2(d2,d3,init) for _ in range(d1)]

def to_bin(x: int) -> str: return format(x, 'b') 
def to_oct(x: int) -> str: return format(x, 'o') 
def to_hex(x: int) -> str: return format(x, 'x') 
MOD=10**9+7
def divc(x,y) -> int: return -(-x//y)
def divf(x,y) -> int: return x//y
def gcd(x,y):
    while y: x,y = y,x%y
    return x
def lcm(x,y): return x*y//gcd(x,y)
def enumerate_divs(n):
    """Return a tuple list of divisor of n"""
    return [(i,n//i) for i in range(1,int(n**0.5)+1) if n%i==0]
def get_primes(MAX_NUM=10**3):
    """Return a list of prime numbers n or less"""
    is_prime = [True]*(MAX_NUM+1)
    is_prime[0] = is_prime[1] = False
    for i in range(2, int(MAX_NUM**0.5)+1):
        if not is_prime[i]: continue
        for j in range(i*2, MAX_NUM+1, i):
            is_prime[j] = False
    return [i for i in range(MAX_NUM+1) if is_prime[i]]

from itertools import accumulate as acc
from collections import deque, Counter
from heapq import heapify, heappop, heappush
from bisect import bisect_left


def main():
    h, w = MII()
    s = ['
    for i in range(h):
        s.append('
    s.append('
    print(*s,sep='\n')

if __name__ == '__main__':
    main()

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

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

ans = []
topdown = ""

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

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

ans.append(topdown)
for i in range(h):
    ans.append(a[i])
ans.append(topdown)

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

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

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

print(pad)
for p in pic:
  print(p)
print(pad)

Solution (Python):


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

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

Solution (Python):
import numpy as np
import sys

input = sys.stdin.readline

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

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

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

for i in range(H):
    print('
    print('{}'.format(a[i][:len(a[i])-1]),end="")
    print('

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

Solution (Python):
import sys
input = sys.stdin.readline
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())
a = ['
a.append('
a.insert(0, '
for row in a:
    print(row)

Solution (Python):
from collections import deque
h, w = map(int, input().split())
li = [input() for _ in range(h)]
for i in range(h):
    li[i] = '
d = deque(li)
d.appendleft('
d.append('
for s in d:
    print(s)

Solution (Python):

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

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

for r in matrix:
    print(''.join(r))

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

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

w = [str(input()) for i in range(W)]


print('
for i in range(len(w)):
  print('
print('

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

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

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

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

Solution (Python):
def resolve():
    H, W = list(map(int, input().split()))
    A = ["
    sharpline = "".join(["
    [print(line) for line in [sharpline]+A+[sharpline]]




if '__main__' == __name__:
    resolve()

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

for i in range(H+2):
  for j in range(W+2):
    if j<W+1: print(S[i][j],end='')
    else: print(S[i][j])

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

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 7)
f_inf = float('inf')
mod = 10 ** 9 + 7


def resolve():
    H, W = map(int, input().split())
    res = [["
    for _ in range(H):
        a = list(input())
        res.append(["
    res.append(["
    for i in res:
        print("".join(i))


if __name__ == '__main__':
    resolve()

Solution (Python):
def resolve():
	h, w = map(int, input().split())
	ans = [['
	for i in range(1, h+1):
		r = input()
		for j in range(1, w+1):
			ans[i][j] = r[j-1]
	for r in ans:
		print("".join(r))
resolve()

Solution (Python):



H, W = map(int, input().split())
a_list = [['']*W for i in range(H)]
for i in range(H):
    a_nums = list(input())
    for j in range(W):
        a_list[i][j] = a_nums[j]


ans = "
ans += "\n"
for i in range(H):
    ans += "
    for j in range(W):
        ans += a_list[i][j]
    ans += "
ans += "
print(ans)

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().split()) for _ in range(H)]

s = []
for i in range(W + 2):
    s.append('

for i in range(H + 2):
    if (i == 0):
        print(''.join(s))
    elif (i > 0 and i < H + 1):
        print('
    elif (i == H + 1):
        print(''.join(s))

Solution (Python):
def main():
    H, W = (int(i) for i in input().split())
    A = ["
    print("
    print(*A, sep="\n")
    print("


if __name__ == '__main__':
    main()

Solution (Python):


import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

def main():
    h, w = na()
    g = ["
    for _ in range(h):
        g += ["
    g += ["
    for gi in g:
        print(gi)

if __name__ == "__main__":
    main()

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

Solution (Python):
from collections import deque
h,w = map(int,input().split())
a = deque([])
for i in range(h):
    A = deque(str(input()))
    A.appendleft("
    A.append("
    a.append(A)
a.appendleft(["
a.append(["
ans = []
for i in range(h+2):
    tmp = "".join(a[i])
    print(tmp)

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

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

ans = [['
for i, ai in enumerate(a):
    for j, aij in enumerate(ai):
        ans[i + 1][j + 1] = aij

for ansi in ans:
    print(''.join(ansi))

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

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

tmp = ['
lst.append(tmp)

for tmp in lst:
    print (*tmp, sep = '')

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

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

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

Solution (Python):
import sys
sys.setrecursionlimit(10 ** 5 + 10)
def input(): return sys.stdin.readline().strip()

def resolve():

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


resolve()

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

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

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

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

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

args = []
for l in sys.stdin:
  args.append(l.strip('\n'))


l0 = args[0].split()
row_n = int(l0[0])
col_n = int(l0[1])

print('
for i in range(row_n):
  l = '
  print(l)
print('

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

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

def main():
  
  row, col = map(int, input().split())
  ls2 = []
  for i in range(row):
    ls = list(input().split())
    ls = ['
    ls2.append(ls)

  ls_line = ['
  print(''.join(ls_line))
  for row in ls2:
    print(''.join(row))
  print(''.join(ls_line))
  
if __name__ == "__main__":
  main()

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

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

Solution (Python):
n,m = map(int,input().split())
A = [input() for _ in range(n)]
B = []
F = "
for i in range(n):
    B.append("


print(F)
for i in range(n):
    print(B[i])
print(F)

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

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

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

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

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

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

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

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

Solution (Python):

import sys
input= lambda: sys.stdin.readline().rstrip()



def resolve():
    H,W=map(int, input().split())
    l="
    print(l)
    for i in range(H):
        s=input()
        print("
    print(l)

resolve()

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

for r in f:
    print(r)

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

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

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

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

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

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

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

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

for i in range(x):
    s = "
    ans.append(list(s))

ans.append(["

for a in ans:
    for b in a:
        print(b, end ="")
    print()

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

for i in range(-1, H+1):
    if i == -1 or i == H:
        print("
    else:
        tmp = ["
        print("".join(tmp))

Solution (Python):
import sys
from collections import Counter
readline = sys.stdin.buffer.readline
MOD = 10**9+7

def main():
    H, W = map(int, readline().split())
    top_end = '
    print(top_end)
    for _ in range(H):
        a = '
        print(a)
    print(top_end)




if __name__ == '__main__':
    main()

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

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

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

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

print("
for i in range(H):
    print(row_li[i], sep="")
print("

Solution (Python):

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

for i in range(h):
    if i == 0:
        print('
    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:
        a = input()
        print("

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

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


if __name__ == '__main__':
    main()

Solution (Python):
















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

board = [[] for _ in range(H+2)]
board[0] = ["
for i in range(1,H+1):
    board[i] = ["
board[H+1] = ["

for row in board:
    print(*row,sep="")

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

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

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

al = ["
for _ in range(h):
    al.append("
al.append("

for a in al:
    print(a)

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

ans_map = [['
for a in a_inputs:
    ans_map.append(['
ans_map.append(['

for ans in ans_map:
    print(''.join(ans))

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


arr = [['

for r in range(H):
    a=input()
    for c in range(W):
        arr[r+1][c+1]=a[c]


for r in range(H+2):
    for c in range(W+2):
        print(arr[r][c],end='')
    print()

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

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

while True:
  try:
    a.append(input())
  except:
    break
    
for i in range(h):
  a[i] = "

print("
for i in range(h):
  print(a[i])
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().split())) for i in range(H)]

print("

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

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



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

Solution (Python):
a,b = map(int,input().split())
b2 =b+2
print("

for i in range(a):
    c = input()
    print("

print("

Solution (Python):
a,b = map(int,input().split())
b2 =b+2
print("

for i in range(a):
    c = input()
    print("

print("

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

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

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

Solution (Python):

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

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())
li=['
for i in range(h):
    li.append('
li.append('
for n in li:
    print(n)

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

list_score.insert(0, "
list_score.append("

for l in list_score:
    print("

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

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

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

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

Solution (Python):
h,w=map(int,input().rstrip().split(' '))
A = list()
a = "
A.append(a)
for i in range(h):
  a = str(input().rstrip())
  a = "
  A.append(a)

a = "
A.append(a)
for a in A:
  print(a)

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

Solution (Python):
icase=0
if icase==0:
    h,w=map(int,input().split())
    a=[]
    s=["
    st="".join(s)
    for i in range(h):
        ai=input()
        a.append(ai)
    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())
al = [input() for _ in [0]*h]
al = ['
sharp = '
print(sharp)
print('\n'.join(al))
print(sharp)

Solution (Python):

n,m=map(int,input().split())


for i in range(n+2):
    s=""
    if i==0 or i==n+1:
        s="
        
    else:
        a=input()
        s="
    print(s)

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

print('
for s in S:
    print('
print('

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

pic = []

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


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

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


for i in range(w+2):
	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())
A=["
for i in range(H) :
    A.append(input())
A.append("
for j in range(H+2):
    print("

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

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

Solution (Python):
h, w = map(int, input().split())
aaa = [list(map(str, input().split())) for _ in range(h)]
for i, aw in enumerate(aaa):
    aw.insert(0, '
    aw.append('
    aaa[i] = aw
aaa.insert(0, ['
aaa.append(['

for aw in aaa:
    print(''.join(aw))

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

print('
for line in p:
    print('
print('

Solution (Python):

def myAnswer(H:int,W:int,A:list)-> None:
   for h in range(H+2):
      if(h == 0 or h == H+1):
         print("
      else:
         for w in range(W+2):
            if(w == 0):
               print("
            elif(w == W+1):
               print("
            else:
               print(A[h-1][w-1],end="")


def modelAnswer():
   tmp=1
def main():
   H,W =map(int,input().split())
   A = []
   for i in range(H):
      A.append(list(input()))
   myAnswer(H,W,A)

if __name__ == '__main__':
   main()

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

Solution (Python):

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

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

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

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

Solution (Python):
import collections
import sys
import numpy as np
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
MOD = 10**9+7
import itertools
import math

h,w = map(int,input().split())
ans = ["
for i in range(h):
    s = input()
    s = "
    ans.append(s)
ans.append("
for i in range(len(ans)):
    print(ans[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):
def main():
    H, W = map(int, input().split())
    img = [input().split() for _ in range(H)]
    print("
    for l in img:
        print("
    print("
main()

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

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

print('
for i in A:
    print('

print('

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

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

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

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

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

[print('
print()

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

[print('
print()

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

ue = ["
print(*ue,sep="")
for i in range(h):
    print("
    print(*l[i],sep="",end="")
    print("

print(*ue,sep="")

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

Solution (Python):
h,w = map(int,input().split(' '))
ans = '
i = 0
while i < h:
    ans += '
    ans += input()
    ans += '
    i += 1
ans += '
print(ans)