Problem:
 Score : 200 points    Problem Statement You are given a image with a height of H pixels and a width of W pixels.
Each pixel is represented by a lowercase English letter.
The pixel at the i -th row from the top and j -th column from the left is a_{ij} .  Put a box around this image and output the result. The box should consist of # and have a thickness of 1 .      Constraints  1 ≤ H, W ≤ 100  a_{ij} is a lowercase English letter.         Input Input is given from Standard Input in the following format:  H  W  a_{11}  ...  a_{1W}  :  a_{H1}  ...  a_{HW}       Output Print the image surrounded by a box that consists of # and has a thickness of 1 .        Sample Input 1 2 3
abc
arc      Sample Output 1 #####
#abc#
#arc#
#####       Sample Input 2 1 1
z      Sample Output 2 ###
#z#
###

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

print '
for i in range(H):
    a=raw_input()
    print '
print '

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

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

for s in range(H+2):
    print(matrix[s])

Solution (Python):


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

pic = [["

for i in xrange(h):
    aij = raw_input()

    for j in xrange(len(aij)):
        pic[i+1][j+1] = aij[j]

for p in pic:
    print "".join(p)

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

Solution (Python):

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

s0 = "
print(s0)

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

print(s0)

Solution (Python):
hw = [int(n) for n in input().split()]

for i in range(hw[0]):
    a = [moji for moji in input().split()]
    a.insert(0, '
    a.append('
    if i == 0:
        print('
    print(''.join(a))

print('

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

Solution (Python):
n = input()
tmp_n = n.split(" ")

h = int(tmp_n[0])
w = int(tmp_n[1])
in_list = []

for i in range(h):
    in_pixel = input()
    in_list.append(in_pixel)

print("
for j in in_list:
    print("
print("

Solution (Python):
def output(out):
    for i in out:
        for j in i:
            print(j, end='')
        print()
    return

def func(H, W):
    out = ['' for i in range(H+2)]
    b = ['
    out[0] = b
    for i in range(H):
        s = input()
        out[i+1] = ['
    out[-1] = b
    return out

s = input().split(' ')
H = int(s[0])
W = int(s[1])
out = func(H, W)
output(out)

Solution (Python):
import sys
import random

def rd():
        return sys.stdin.readline().rstrip()

def rdi():
        return [ int(x) for x in rd().split() ]

H, W = rdi()
print "
for i in range(H):
        s = rd()
        print "
print "

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

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

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

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

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

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

print '
for _ in xrange(h):
    print '
print '

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

for h in range(H):
  lst.append(input())


print('
for s in lst:
  print('
print('

Solution (Python):
a, b = map(int, input().split())

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

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

print("

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

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

print("

Solution (Python):


import sys

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

Solution (Python):

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

print "".join(["

for i in xrange(H):
    print "

print "".join(["

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

pic = [["
for i in range(h):
    for j in range(w):
        pic[i + 1][j + 1] = pic0[i][j]

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

Solution (Python):



if __name__ == "__main__":

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

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

Solution (Python):

H, W = [int(n) for n in input().split()]
A = []

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

result = "
for a in A:
    result += "\n
result += "\n"+"
print(result)

Solution (Python):

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


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

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

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

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

output = []
output.append('

for _ in range(H):
    pics = '
    output.append(pics)

output.append('

for pics in output:
    print(pics)

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

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

framed_image = []
for i in range(H+2):
    if i == 0 or i == H+1:
        framed_image.append("
    else:
        framed_image.append("
        del image[0]

for line in framed_image:
    print(line)

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

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

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

mp.append(["

for idx in range(H+2):
    print "".join(mp[idx])

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

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

H = inputs[0]
W = inputs[1]

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

print("

for s in strs:
	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):
H,W=map(int,raw_input().split())
pic=[]
for i in range(H):
    pic.append('
pic.insert(0,'
pic.append('
for i in pic:
    print i

Solution (Python):
def rren(): return list(map(int, input().split()))


H, W = rren()
a = ""
for i in range(W+2):
    a += "
print(a)
for i in range(H):
    print("
print(a)

Solution (Python):


import sys
import math

sets = [
    set([1,3,5,7,8,10,12]),
    set([4,6,9,11]),
    set([2])
]

def find_group(i):
    for index, group in enumerate(sets):
        if i in group:
            return index


H,W = map(int, sys.stdin.readline().rstrip().split())
print("
for _ in range(H):
    print("
print("

exit(0)

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

for i in range(H):
	L.append(input().split())

print("

for i in range(H):
	print("
	print("".join(L[i]), end = "")
	print("

print("

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

str = ""
for j in range(w+2):
    str += "
print(str)
for k in range(h):
    print("
print(str)

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

img = list()
for i in range(h):
    img.append(input())

print("
for row in img:
    print("
    
print("

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

Solution (Python):
H,W = map(int,raw_input().split(' '))
print "
for _ in xrange(H):
    s = raw_input()
    print "
print "

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

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

print('

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

print('

Solution (Python):


import sys
import os

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

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

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

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

Solution (Python):
x, y = map(int, raw_input().split())

print "

for i in range(x):
	a = raw_input()
	print "

print "

Solution (Python):


h,w=map(int,input().split())
data=['
for i in range(h):
    data.append('
data.append('
print('\n'.join(data))

Solution (Python):


h,w = map(int, raw_input().split())
sharp = ''

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

Solution (Python):



def read():
    row, col = map(int, raw_input().split())
    b = []
    for i in range(row):
        b.append(raw_input())
    return b


def work(b):
    print "
    for line in b:
            print "
    print "
   

if __name__ == "__main__":
    work(read())

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

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

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