largura = 8
altura = 4
rect = ''
for i in range(altura):
for j in range(largura):
if(j == 0 or j == largura-1 or i == 0 or i == altura-1):
rect += '#'
continue
rect += ' '
rect += '\n'
print(rect)
bGFyZ3VyYSA9IDgKYWx0dXJhID0gNApyZWN0ID0gJycKZm9yIGkgaW4gcmFuZ2UoYWx0dXJhKToKCWZvciBqIGluIHJhbmdlKGxhcmd1cmEpOgoJCWlmKGogPT0gMCBvciBqID09IGxhcmd1cmEtMSBvciBpID09IDAgb3IgaSA9PSBhbHR1cmEtMSk6CgkJCXJlY3QgKz0gJyMnCgkJCWNvbnRpbnVlCgkJcmVjdCArPSAnICcKCXJlY3QgKz0gJ1xuJwpwcmludChyZWN0KQ==