h, w = map(int, input().split())
s = '#' * (w + 2)
print(s)
for _ in range(h):
    a = input()
    a = '#' + a + '#'
    print(a)
print(s)

7af5a4b544c704288a878aa8a960a8f7a80a9c0a
<mask token>

<mask token>
print(s)
for _ in range(h):
    a = input()
    a = '#' + a + '#'
    print(a)
print(s)

h, w = map(int, input().split())
s = '#' * (w + 2)
print(s)
for _ in range(h):
    a = input()
    a = '#' + a + '#'
    print(a)
print(s)
