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):
arr=list(map(int,input().rstrip().split()))
r=arr[0]
c=arr[1]
line=[]
for i in range(0,r):
    line.append(input())
s=[[0 for x in range(r)]for y in range(c)]
for i in range(0,r+2):
    for j in range(0,c+2):
        if i == 0 or i == r + 1 or j == 0 or j == c + 1:
            print("
        else:
            z=line[i-1]
            print(z[j-1],end="")
    print()

Solution (Python):

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

for i in range(h):
    print('
    for j in range(w):
        print(p[i][j],end='')
    print('

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

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

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

Solution (Python):
n,m=map(int,input().split())
l=[input() for _ in [0]*n]
for i,s in enumerate(l):
  l[i]='
a=['
l=a+l+a
print('\n'.join(l))

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

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

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

Solution (Python):
a,b = map(int,input().split(" "))
ar = []
br = ["
ar.append(br)
for j in range(a):
    cr = list(input())
    cr.insert(0,"
    cr.append("
    ar.append(cr)
ar.append(br)
for r in ar:
    print("".join(r))

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

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

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

a = []
for i in range(H):
    A = input()
    A = "
    a.append(A)
print(str(sharp*(W+2)))
for i in range(H):
    print(a[i])
print(str(sharp*(W+2)))

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

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

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

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

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

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

for i in range(len(s)):
    t = list(s[i])
    t.insert(0,'
    t.append('
    s[i] = ''.join(t)


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

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

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

for i in range(len(s)):
    t = list(s[i])
    t.insert(0,'
    t.append('
    s[i] = ''.join(t)


print('
for i in range(len(s)):
    print(s[i])
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())
print('
for i in range(H):
  print('
print('

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

Solution (Python):
from sys import stdin


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

    for i in range(h + 2):
        print("
        if not 0 < i <= h:
            print("
        else:
            print(a[i - 1], end="")
        print("


def next_int() -> int:
    return int(next_str())


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin


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

    ans = []
    for i in range(h + 2):
        ans += ["
        if not 0 < i <= h:
            ans[i] += "
        else:
            ans[i] += a[i - 1]
        ans[i] += "

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


def next_int() -> int:
    return int(next_str())


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin


def main():
    h, w = map(int, input().split())
    a = [next_str() for _ in range(h)]
    ans = [a[i - 1] if 0 < i <= h else "
    print("\n".join(map(lambda x: "


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin


def main():
    h, w = map(int, input().split())
    a = [next_str() for _ in range(h)]
    ans = ["
    print("\n".join(map(lambda x: "


def next_int() -> int:
    return int(next_str())


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()

Solution (Python):
from sys import stdin


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

    ans = []
    for i in range(h + 2):
        ans += ["
        if i == 0 or i == h + 1:
            ans[i] += "
        else:
            ans[i] += a[i - 1]
        ans[i] += "

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


def next_int() -> int:
    return int(next_str())


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


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())
ans = ["
for _ in range(H):
    a = input()
    ans.append("
ans.append("

for a in ans:
    print(a)

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

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

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

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

print("

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

print("\n".join(["

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

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

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

Solution (Python):
h, w = map(int, input().split())
li=[]
index=0
while index<h:
    li.append(input())
    index+=1

print("
for sent in li:
    print("
print("

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

a = []

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



ans = []

for i in range(h + 2):
    if i == 0 or i == h + 1:
        s = ""
        for j in range(w + 2):
            s = s + "

        ans.append(s)

    else:
        s = "
        ans.append(s)



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

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

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

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

Solution (Python):
H,W = map(int,input().split())
for i in range(H+2) :
    if i == 0 or i == (H+1) :
        print("
    else :
        picture = input()
        print("

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

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

print(sh)

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

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

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

def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

h,w = li()
s = []
s.append(["
for _ in range(h):
    temp = ["
    temp = temp + lc()
    temp = temp + ["
    s.append(temp)
              
s.append(["
          
for si in s:
    print("".join(si))

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

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

Solution (Python):

"""
Created on Sun Sep 16 16:57:33 2018

@author: maezawa
"""

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

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def main():
    H, W = map(int, input().split())
    print("
    for i in range(H):
        line = input()
        print("
    print("


if __name__ == '__main__':
    main()

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

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

Solution (Python):
H, W = map(int, input().split())
a = [["
for i in range(1, H + 1):
    a.append(["
    a[i].extend(input())
    a[i].extend(["
a.append(["
for i in a:
    for j in i:
        print(j, end = "")
    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())
ans = ["
for i in range(h):
    ans.append("
ans.append("
for i in range(len(ans)):
    print(ans[i])

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

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

print("

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

Solution (Python):

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

strs = ""
tmp = []

for j in range(w + 2):
    strs += "
for i in range(h):
    tmp.append(input())
print(strs)
for i in range(h):
    print("
print(strs)

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

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

Solution (Python):
import sys
import math
import collections
import itertools
import array
import inspect


sys.setrecursionlimit(1000000)



def chkprint(*args):
    names = {
        id(v): k
        for k, v in inspect.currentframe().f_back.f_locals.items()
    }
    print(', '.join(
        names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))



def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]


def gcd(n, m):
    if n % m == 0:
        return m
    else:
        return gcd(m, n % m)


def gcd_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = gcd(v, L[i])

    return v


def lcm(n, m):
    return (n * m) // gcd(n, m)


def lcm_list(L):
    v = L[0]

    for i in range(1, len(L)):
        v = lcm(v, L[i])

    return v



def wfs_d(D, N, K):
    """
    D: 隣接行列(距離付き)
    N: ノード数
    K: 始点ノード
    """

    dfk = [-1] * (N + 1)
    dfk[K] = 0

    cps = [(K, 0)]
    r = [False] * (N + 1)
    r[K] = True
    while len(cps) != 0:
        n_cps = []
        for cp, cd in cps:
            for i, dfcp in enumerate(D[cp]):
                if dfcp != -1 and not r[i]:
                    dfk[i] = cd + dfcp
                    n_cps.append((i, cd + dfcp))
                    r[i] = True

        cps = n_cps[:]

    return dfk



def dfs_d(v, pre, dist):
    """
    v:  現在のノード
    pre: １つ前のノード
    dist: 現在の距離

    以下は別途用意する
    D: 隣接リスト(行列ではない)
    D_dfs_d: dfs_d関数で用いる，始点ノードから見た距離リスト
    """

    global D
    global D_dfs_d

    D_dfs_d[v] = dist

    for next_v, d in D[v]:
        if next_v != pre:
            dfs_d(next_v, v, dist + d)

    return


def sigma(N):
    ans = 0
    for i in range(1, N + 1):
        ans += i
    return ans


class Combination:
    def __init__(self, n, mod):

        g1 = [1, 1]
        g2 = [1, 1]
        inverse = [0, 1]
        for i in range(2, n + 1):
            g1.append((g1[-1] * i) % mod)
            inverse.append((-inverse[mod % i] * (mod // i)) % mod)
            g2.append((g2[-1] * inverse[-1]) % mod)
        self.MOD = mod
        self.N = n
        self.g1 = g1
        self.g2 = g2
        self.inverse = inverse

    def __call__(self, n, r):
        if (r < 0 or r > n):
            return 0
        r = min(r, n - r)
        return self.g1[n] * self.g2[r] * self.g2[n - r] % self.MOD




dp = None


def main():
    H, W = li_input()
    S = [input() for _ in range(H)]

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


main()

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

print('
for i in ans:
    print('
print('

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

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

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

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

Solution (Python):

h,w = map(int,input().split())
a=['
for i in range(h):
    temp = '
    a.insert(i+1,temp)

for i in range(len(a)):
    print(a[i],end='\n')

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

for a in ans:
    print(a)

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

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

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

a.append('
for v in a:
    print(v)

Solution (Python):


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

    a_list = [list('
    for _ in range(h):
        temp = list(input())
        temp.insert(0, '
        temp.append('
        a_list.append(temp)
    a_list.append(list('
    
    for i in a_list:
        print(''.join(i))

if __name__ == '__main__':
    main()

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

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

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

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

Solution (Python):
from collections import defaultdict
import sys,heapq,bisect,math,itertools,string
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
AtoZ = [chr(i) for i in range(65,65+26)]
atoz = [chr(i) for i in range(97,97+26)]

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

tb = ['
L = ''
for i in range(W+2):
	L = L +'

print(L)
for i in tb:
	print(i)
print(L)

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

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

print("\n".join(["

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

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

S=[]

for i in range(n):
    tmp=input()
    S.append(tmp)

s=[]

for i in range(m+2):
    s.append("

print(''.join(s))

for i in range(n):
    tmp=["
    print(''.join(tmp))

print(''.join(s))

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

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

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

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

for x in a:
    print('

print('

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

for row in xs:
    print('

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

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

picture = []
for i in range(h):
  picture.append('

picture.insert(0, '
picture.append('

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

Solution (Python):


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

Solution (Python):
"""
https://abc062.contest.atcoder.jp/tasks/abc062_b
"""
[h,w]=[int(i) for i in input().split()]
pic=[]
d=""
for i in range(h):
    pic.append([j for j in input().split()])


for i in range(w+2):
    print("
print("")
for i in range(h):
    d=d+str(pic[i][0])
    print("
    d=""
for i in range(w+2):
    print("

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

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

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

Solution (Python):

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

for i in range(W + 1):
    print('
print('
for i in range(H):
    print('
    print(input(), end = "")
    print('
for i in range(W + 2):
    print('

Solution (Python):


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


ans = [["

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

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

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

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

option = ["
input_list.insert(0, option)
input_list.append(option)

for i in range(1, H+1):
    input_list[i].insert(0, "
    input_list[i].append("

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

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,raw_input().split())
a=[raw_input() for r in xrange(H)]

print '
for ai in a:
  print '
print '

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

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

Solution (Python):
n, w = map(int,input().split())
print('{}'.format('
a = '
for _ in range(n):
    b = a + input() + a
    print(b)
print('{}'.format('

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

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

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):
H, W = map(int,input().split())
A = []
A.append("

for k in range(H):
    A.append("
A.append("

for r in A:
    print(r)

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

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

for i in range(h):
    picture.append(input())
    
print("

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

Solution (Python):

a, b = map(int, input().split())

print('
for _ in range(a):
    image = input()
    print('
print('

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

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

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

R = []
kabe = "".join(["
R.append(kabe)
for i in range(H):
    R.append("
R.append(kabe)

for i in R:
    print(i)

Solution (Python):
H, W = map(int, input().split())
PF_list = [input() for _ in range(H)]
output="
for i in range(W+1):
    output += "
    
print(output)
for i in PF_list:
    print("
print(output)

Solution (Python):
import math
import sys

def getinputdata():

    
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

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


s=""
s += (w+2)*"
s +="\n"

for i in range(1,1+h):
    
    s +="
    s += "".join(arr_data[i])
    s +="


s += (w+2)*"

print(s)

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 = [input() for i in range(h)]
for i in range(w + 1) :
    print("
print("
for i in range(h) :
    print("
for i in range(w + 1) :
    print("
print("

Solution (Python):
def boxify(image, w):
    new = ['
    for row in image:
        new.append('
    new.append('
    return new


if __name__ == '__main__':
    h, w = map(int, input().split())
    image = [input() for _ in range(h)]
    for row in boxify(image, w):
        print(row)

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)]
a.insert(0, "
a.append("
for x in range(len(a)):
    print('

Solution (Python):





if __name__ == '__main__':
    height, width = map(int, input().split())
    header = ''

    for _ in range(width + 2):
        header += header.join('

    print(header)

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

    print(header)

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

Solution (Python):
import pprint

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

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

print(''.join(['
for a in A:
    print('
print(''.join(['

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

for i in range(1+w):
    out += c
print(out)

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

for i in range(W+2):
  if i==W+1:
    print("
  else:
    print("
for i in range(H):
  print("
  print(ans[i],end="")
  print("
for i in range(W+2):
  if i==W+1:
    print("
  else:
    print("

Solution (Python):
p=input;q=print;h,w=map(int,p().split());w+=2;o="

Solution (Python):
p=input;q=print;h,w=map(int,p().split());w+=2;o="

Solution (Python):
p=input;q=print;h,w=map(int,p().split());w+=2;q("

Solution (Python):
h,w=map(int,input().split());w+=2;print("

Solution (Python):
n,m = map(int,input().split())
print("
for i in range(n):
    lis = ["
    lis.append(input())
    lis.append("
    print("".join(lis))
print("

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

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

Solution (Python):
h,w = map(int,input().split())
a = []
for i in range(h):
	temp = input()
	atemp = []
	for k in range(w):
		atemp.append(temp[k])
	atemp.insert(0,'
	atemp.append('
	a.append(atemp)
add = ['
a.insert(0,add)
a.append(add)
for i in range(h+2):
	for k in range(w+2):
		if k != w+1:
			print(a[i][k],end='')
		else:
			print(a[i][k])

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

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

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

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

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

solve()

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

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

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

Ps=""
P=[]
for i in range(H):
    Ps+="
    Ps+=S[i]
    Ps+="
    P.append(Ps)
    Ps=""

print(Ts)
for i in range(H):
    print(P[i])
print(Ts)

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

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

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

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

Solution (Python):
h, w = [int(x) for x in input().split()]
p = []
for _ in range(h):
    p.append(list(input()))
print("
for l in p:
    l[0:0] = "
    l[len(l):] = "
    print("".join(l))
print("

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

Solution (Python):


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

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

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

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

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

print('
for i in s:
  print('
print('

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

list =''

for i in range(W+2):
	list +='
a = [input() for i in range(H)]

print(list)

for j in range(len(a)):
	a[j] ="
	print(a[j])
	
print(list)

Solution (Python):


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

def line():
    for i in range(0, W+2):
        print("
    print()

line()

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

line()

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

Solution (Python):
val = [int(x) for x in input().split()]

aaa = "
for i in range(val[1]+1):
    aaa = aaa + "

array = []
for i in range(val[0]):
    val = input()
    array.append("
print(aaa)
for j in array:
    print(j)
print(aaa)

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

a = [input() for i in range(h)]
    
for i in range(h + 2):
    if i in [0, (h + 1)]:
        print('
    else:
        print('