#include <bits/stdc++.h>
using namespace std;

int main() {
  int h;
  int w;
  cin >> h >> w;
  string head="";
  for (int i=0;i<w+2;++i) head+="#";
  cout << head << endl;
  string str;
  for (int i=0;i<h;++i){
    cin >> str;
    str="#"+str+"#";
    cout << str << endl;
  }
  cout << head << endl;

}
